Ejemplo n.º 1
0
 private void LoggedInForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     for (int i = Application.OpenForms.Count - 1; i >= 0; i--)
     {
         if ((Application.OpenForms[i].Name != "LoginForm") && (Application.OpenForms[i].Name != "LoggedInForm"))
         {
             Application.OpenForms[i].Close(); //TODO: invoke ???
         }
     }
     LoggedInService.logout();
 }
Ejemplo n.º 2
0
 private void LoggedInForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     LoggedInService.logout();
     this.Close();
 }
Ejemplo n.º 3
0
 private void closeApp_button_Click(object sender, EventArgs e)
 {
     LoggedInService.logout();
     this.Close();
 }