Example #1
0
 private void FormMain_Load(object sender, EventArgs e)
 {
     if (controllerProfile.Authentication())
     {
         controller.AccessLevel(ControllerProfile.User);
         MessageBox.Show("Good day,  " + ControllerProfile.User.Login, "Authorization was successful", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         FormLogin formLogin = new FormLogin();
         formLogin.MdiParent = this;
         formLogin.Show();
     }
 }
Example #2
0
 private void FormMain_Load(object sender, EventArgs e)
 {
     if (controllerProfile.Authentication())
     {
         controller.AccessLevel(ControllerProfile.User);
         MessageBox.Show("Добрий день,  " + ControllerProfile.User.Login, "Авторизація пройшла успішно", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         FormLogin formLogin = new FormLogin();
         formLogin.MdiParent = this;
         formLogin.Show();
     }
 }