Ejemplo n.º 1
0
 private void ViewFrame_FormClosed(object sender, FormClosedEventArgs e)
 {
     DirectorPanel.opened = false;
     if (editor != null)
     {
         editor.Close();
     }
 }
Ejemplo n.º 2
0
 private void log_out_Click(object sender, EventArgs e)
 {
     if (Main_form.IsLogged && Main_form.IsProfessor)
     {
         //log out
         if (editor != null)
         {
             editor.Close();
         }
         Main_form.IsLogged    = false;
         Main_form.IsProfessor = false;
         Info[0].Text          = Info[1].Text = string.Empty;
         main.Show();
         Info[0].Focus();
         this.Hide();
         this.Dispose();
     }
 }