private void _dgvItems_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if ((e.ColumnIndex == startTimeDataGridViewTextBoxColumn.Index || e.ColumnIndex == endTimeDataGridViewTextBoxColumn.Index) && _dgvItems.Rows[e.RowIndex].DataBoundItem is Item) { var editItem = _dgvItems.Rows[e.RowIndex].DataBoundItem as Item; var frm = new EditItemForm(editItem); frm.ShowDialog(); } }
private void CheckTimesForOverlap() { _lblOverlapWarning.Visible = EditItemForm.CheckTimesForOverlap(_dtStart.Value, _dtEnd.Value); }