Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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();
            }
        }
Esempio n. 3
0
 private void buttonCancer_Click(object sender, EventArgs e)
 {
     this.IsEnd = true;
     this.Close();
     _instance = null;
 }
Esempio n. 4
0
        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;
        }
Esempio n. 5
0
 private void buttonCancer_Click(object sender, EventArgs e)
 {
     this.IsEnd = true;
     this.Close();
     _instance = null;
 }