private void button4_Click(object sender, EventArgs e) { if (Utility._speechID == -1) { Error er = new Error(); er.Text = "Виберіть виступ"; er.Show(); } else { speakersList sl = new speakersList(); sl.Show(); } }
private void button8_Click(object sender, EventArgs e) { if (-1 == Utility._sectID) { Error er = new Error(); er.setError("Введіть секцію"); er.Show(); } else { int temp = Utility._speechID; Utility._speechID = -1; speakersList sp = new speakersList(); sp.Show(); Utility._speechID = temp; } }