private void buttonOk_Click(object sender, EventArgs e) { string pseudo = this.pseudo.Text; string password = this.password.Text; this.AuthentificationDataManager.DefineAuthentification(pseudo, password); if (this.RightService != null) { this.RightService.MajRightForAppliChange(); } this.IsEnd = true; this.Close(); _instance = null; }
public void Logout() { this.AuthentificationDataManager.DefineAuthentification("", ""); foreach (CheckerAndNotifier can in this.NotifiersCheckProcess.CheckerAndNotifier) { can.reset(); } FormAuthentification authForm = FormAuthentification.Instance; if (authForm != null) { authForm.AuthentificationDataManager = this.AuthentificationDataManager; authForm.RightService = this.RightService; authForm.Show(); while (!authForm.IsEnd) { Application.DoEvents(); } authForm.Dispose(); } }
private void buttonCancer_Click(object sender, EventArgs e) { this.IsEnd = true; this.Close(); _instance = null; }