private void mnuLogin_Click(object sender, EventArgs e) { SecurityUtility.LoginForm f = new SecurityUtility.LoginForm(); DialogResult res = f.ShowDialog(); if (res == DialogResult.OK) { try { ImpersonateUser(f.Username, f.Password, f.Domain); UpdateIdentities(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }
private void mnuLogin_Click(object sender, EventArgs e) { SecurityUtility.LoginForm f = new SecurityUtility.LoginForm(); f.ShowDomain = false; DialogResult res = f.ShowDialog(); if (res == DialogResult.OK) { try { this.m_username = f.Username; this.m_password = f.Password; InitializeProxy(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }