public FProgressBar()
 {
     ValueChanged += delegate
     {
         if (Hint == null || Hint.EndsWith(" %"))
         {
             Hint = ((int)(Value / Maximum * 100)).ToString() + " %";
         }
     };
 }
Beispiel #2
0
 public MiProgressBar()
 {
     ControlUtility.Refresh(this);
     ValueChanged += delegate
     {
         if (Hint == null || Hint.EndsWith(" %"))
         {
             Hint = ((int)(Value / Maximum * 100)).ToString() + " %";
         }
     };
 }