private void EditButton_Click(object sender, EventArgs e) { HPS.BLL.ComputerBLL.BLLComputer_TKeys ComputerKey = new HPS.BLL.ComputerBLL.BLLComputer_TKeys(); ComputerKey.ComputerID_int = (Int32?)this.ComputerGridView.CurrentRow.Cells["colComputerID_int"].Value; ComputerEntityForm Computer = new ComputerEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.ComputerGridView.DataSource, ComputerKey); Computer.ShowDialog(); }
private void NewButton_Click(object sender, EventArgs e) { ComputerEntityForm Computer = new ComputerEntityForm((DataTable)this.ComputerGridView.DataSource); Computer.ShowDialog(); }