private void button1_Click(object sender, EventArgs e) { Start start = new Start(); start.Close(); if (comboBox1.SelectedIndex == 0) { // Корректировать записи CorrectRecords correct = new CorrectRecords(); correct.ShowDialog(); } if (comboBox1.SelectedIndex == 1) { // Добавить запись AddingItems adding = new AddingItems(); adding.ShowDialog(); } if (comboBox1.SelectedIndex == 2) { // Delete DeleteFM delete = new DeleteFM(); delete.ShowDialog(); } ShowData(); }
void AddRecord() { AddingItems a = new AddingItems(); a.ShowData(); a.ShowDialog(); }