//Меню "Польз." -> "Выйти" private void выйтиToolStripMenuItem_Click(object sender, EventArgs e) { if (user_group == "Редактор") { save_changes(); flag_saved = true; } this.Visible = false; FormAuth form_auth = new FormAuth(); form_auth.Visible = true; }
//Закрытие формы private void FormSchedule_FormClosed(object sender, FormClosedEventArgs e) { if (user_group == "Редактор") { save_changes(); flag_saved = true; } this.Visible = false; FormAuth form_auth = new FormAuth(); form_auth.Visible = true; }