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