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); }
protected void TriggerChange() => ChangedValue?.Invoke(this);
public void IfValueIsChanged(int a, int b) => ChangedValue?.Invoke(this, new IfChanged(a, b));