コード例 #1
0
ファイル: MainApp.cs プロジェクト: korfoo12/lab8
        private void removeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string mark, zachetka, subject;
            Remove f3 = new Remove();

            if (f3.ShowDialog() == DialogResult.OK)
            {
                zachetka = f3.zachetka;
                mark     = f3.mark;
                subject  = f3.subject;
                if (zachetka == "" || mark == "" || subject == "")
                {
                    MessageBox.Show("You have to fill all fields!");
                }
                else
                {
                    Procedures.Remove(zachetka, subject, mark);
                }
            }
            label1.Text = Procedures.GetInfo();
        }
コード例 #2
0
ファイル: MainApp.cs プロジェクト: sitdikov-fe/8lab
        private void removeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string disount, date, tariff;
            Remove f3 = new Remove();

            if (f3.ShowDialog() == DialogResult.OK)
            {
                date    = f3.date;
                disount = f3.disount;
                tariff  = f3.tariff;
                if (date == "" || disount == "" || tariff == "")
                {
                    MessageBox.Show("You have to fill all fields!");
                }
                else
                {
                    Procedures.Remove(date, tariff, disount);
                }
            }
            label1.Text = Procedures.GetInfo();
        }