private void distillationGridView_MouseDoubleClick(object sender, MouseEventArgs e) { if (distillationGridView.CurrentRow.DataBoundItem is Distillation distillation) { DistillationDetail dd = new DistillationDetail(distillation.Id); if (dd.ShowDialog() == DialogResult.OK) { Reload(); } } }
private void detailPáleníToolStripMenuItem_Click(object sender, EventArgs e) { if (distillationGridView.CurrentRow.DataBoundItem is Distillation distillation) { DistillationDetail dd = new DistillationDetail(distillation.Id); if (dd.ShowDialog() == DialogResult.OK) { Reload(); } } }