コード例 #1
0
        //Меню "Польз." -> "Выйти"
        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;
        }
コード例 #2
0
        //Закрытие формы
        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;
        }