示例#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
        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();
        }