Exemplo n.º 1
0
        /// <summary> display a dialog; store input values in 'credentials'.</summary>
        public override DialogResult openDialog()
        {
            DialogResult result = base.openDialog();

            if (result == DialogResult.Cancel)
            {
                _credentials = null;
            }

            return(result);
        }
Exemplo n.º 2
0
 /// <summary> set current credentials with new credentials </summary>
 public void setCredentials(UsernamePasswordCredentials newCredentials)
 {
     _credentials.Username = newCredentials.Username;
     _credentials.Password = newCredentials.Password;
 }