private void button_Add_Click(object sender, EventArgs e) { AlarmParameter temp = new AlarmParameter(); EditChecked add = new EditChecked(temp, this); add.Owner = this; add.Show(); }
private void button_Update_Click(object sender, EventArgs e) { AlarmParameter temp = new AlarmParameter(); temp.fuc = "update"; temp.Title = "update"; temp.selectIndex = dataGridView1.CurrentCell.RowIndex; EditChecked add = new EditChecked(temp, this); add.Owner = this; add.Show(); }