Exemplo n.º 1
0
        private void PassClosed(object sender, EventArgs e)
        {
            var pass = (Password)sender;

            //var pc = new PrincipalContext(ContextType.Domain,"MRDOORS.RU");
            //if (pc.ValidateCredentials("Solid", pass.Passwrd))
            if (pass.Passwrd == Properties.Settings.Default.AdmUsrPsw)
            {
                _frmOpt = new Options();
                _frmOpt.Closing += _frmOpt_Closing;
            }
        }
Exemplo n.º 2
0
 private void FrmOptionsClosing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (_frmOpt != null)
     {
         if (_frmOpt.TestState)
         {
             _isNeededRefresh = true;
         }
         _frmOpt.Close();
         _frmOpt = null;
     }
 }