private void ViewFrame_FormClosed(object sender, FormClosedEventArgs e) { DirectorPanel.opened = false; if (editor != null) { editor.Close(); } }
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(); } }