private void EditDeploymentButton_Click(object sender, EventArgs e) { if (DeploymentDataGridView.CurrentRow == null) { return; } var item = DeploymentDataGridView.CurrentRow.DataBoundItem as DeploymentDataItem; if (item == null) { return; } var form = new CollarDeploymentDetailsForm(item.Deployment, false, true); form.DatabaseChanged += (o, x) => CollarDataChanged(); form.Show(this); }
private void EditDeploymentButton_Click(object sender, EventArgs e) { if (DeploymentDataGridView.CurrentRow == null) return; var item = DeploymentDataGridView.CurrentRow.DataBoundItem as DeploymentDataItem; if (item == null) return; var form = new CollarDeploymentDetailsForm(item.Deployment, true); form.DatabaseChanged += (o, x) => AnimalDataChanged(); form.Show(this); }