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