Пример #1
0
 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();
     }
 }
Пример #2
0
        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();
            }
        }