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