protected override void OnClick() { if (show_window) { PasswWin w = new PasswWin(); w.Passw = Password; w.ShowDialog(); if (w.DialogResult == true) { base.OnClick(); } } else { base.OnClick(); } }
protected override void OnClick() { if ((base.IsChecked == true) && FreeReset) { base.OnClick(); return; } PasswWin w = new PasswWin(); w.Passw = Password; w.ShowDialog(); if (w.DialogResult == true) { base.OnClick(); } }