mirror of
				https://github.com/chylex/TweetDuck.git
				synced 2025-10-31 18:17:15 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			498 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			498 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.ComponentModel;
 | |
| using System.Windows.Forms;
 | |
| 
 | |
| namespace TweetDuck.Core.Controls{
 | |
|     sealed class NumericUpDownEx : NumericUpDown{
 | |
|         public string TextSuffix { get; set ; }
 | |
| 
 | |
|         protected override void UpdateEditText(){
 | |
|             base.UpdateEditText();
 | |
| 
 | |
|             if (LicenseManager.UsageMode != LicenseUsageMode.Designtime){
 | |
|                 ChangingText = true;
 | |
|                 Text += TextSuffix;
 | |
|                 ChangingText = false;
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 |