private void EditButton_Click(object sender, EventArgs e) { HPS.BLL.DriverBLL.BLLDriver_TKeys DriverKey = new HPS.BLL.DriverBLL.BLLDriver_TKeys(); DriverKey.DriverID_bint = (Int64)this.DriverGridView.CurrentRow.Cells["colDriverID_bint"].Value; DriverEntityForm Driver = new DriverEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.DriverGridView.DataSource, DriverKey); Driver.ShowDialog(); }
private void NewButton_Click(object sender, EventArgs e) { DriverEntityForm Driver = new DriverEntityForm((DataTable)this.DriverGridView.DataSource); Driver.ShowDialog(); }