Beispiel #1
0
        public static void GetValue(string name, int max, int coun)
        {
            ProgressBar progress = new ProgressBar();

            progress.MinValue = 0;
            progress.MaxValue = max;
            if (max != coun)
            {
                progress.CurrentValue = coun;
                progress.ProgressName = name;
                progress.ButtonState  = false;
            }
            else
            {
                progress.CurrentValue = 0;
                progress.ProgressName = "";
                progress.ButtonState  = true;
            }



            ChangedValue?.Invoke(progress);
        }
Beispiel #2
0
 protected void TriggerChange()
 => ChangedValue?.Invoke(this);
Beispiel #3
0
 public void IfValueIsChanged(int a, int b) => ChangedValue?.Invoke(this, new IfChanged(a, b));