Exemplo n.º 1
0
 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();
     }
 }
Exemplo n.º 2
0
 private void CheckTimesForOverlap()
 {
     _lblOverlapWarning.Visible = EditItemForm.CheckTimesForOverlap(_dtStart.Value, _dtEnd.Value);
 }