コード例 #1
0
ファイル: BooksOutputForm.cs プロジェクト: HoToBe23/TSPP
        //Кнопка ОК
        private void button1_Click(object sender, EventArgs e)
        {
            Autorization autorization = new Autorization();

            if (!autorization.CheckAutorization())
            {
                this.Hide();
                StartMenuAfterAutorizationForm SwitchStartMenu = new StartMenuAfterAutorizationForm();
                SwitchStartMenu.Show();
            }
            else
            {
                this.Hide();
                StartMenuForm SwitchStartMenu = new StartMenuForm();
                SwitchStartMenu.Show();
            }
        }
コード例 #2
0
        //Кнопка Повернутися
        private void button3_Click(object sender, EventArgs e)
        {
            DialogResult ChooseYesNo = MessageBox.Show("Впевнені що хочете повернутися в головне меню?", "MyBooks", MessageBoxButtons.YesNo);

            if (ChooseYesNo == DialogResult.Yes)
            {
                Autorization autorization = new Autorization();

                if (autorization.CheckAutorization())
                {
                    this.Hide();
                    StartMenuAfterAutorizationForm SwitchStartMenu = new StartMenuAfterAutorizationForm();
                    SwitchStartMenu.Show();
                }
                else
                {
                    this.Hide();
                    StartMenuForm SwitchStartMenu = new StartMenuForm();
                    SwitchStartMenu.Show();
                }
            }
        }