private void buttonAdd_Click(object sender, EventArgs e) { PoolForm pf = new PoolForm(ac, 1, null); pf.FormBorderStyle = FormBorderStyle.FixedSingle; pf.FormClosed += new FormClosedEventHandler(f_FormClosed); }
private void buttonDelete_Click(object sender, EventArgs e) { if (dataGridView1.Rows.GetRowCount(DataGridViewElementStates.Selected) == 1) { PoolForm pf = new PoolForm(ac, 3, pools[dataGridView1.SelectedRows[0].Index]); pf.FormBorderStyle = FormBorderStyle.FixedSingle; pf.FormClosed += new FormClosedEventHandler(f_FormClosed); } }