private void mnu_Add_Click(object sender, EventArgs e)
        {
            FrmShiftItemDetail frm = new FrmShiftItemDetail();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                ShiftItem item = frm.ShiftItem;
                item.ID = Guid.NewGuid();
                AddShiftItemToGridView(item);
            }
        }
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         ShiftItem          item = dataGridView1.Rows[e.RowIndex].Tag as ShiftItem;
         FrmShiftItemDetail frm  = new FrmShiftItemDetail();
         frm.ShiftItem = item;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             ShiftItem item1 = frm.ShiftItem;
             AddShiftItemToGridView(item1);
         }
     }
 }
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         ShiftItem item = dataGridView1.Rows[e.RowIndex].Tag as ShiftItem;
         FrmShiftItemDetail frm = new FrmShiftItemDetail();
         frm.ShiftItem = item;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             ShiftItem item1 = frm.ShiftItem;
             AddShiftItemToGridView(item1);
         }
     }
 }
 private void mnu_Add_Click(object sender, EventArgs e)
 {
     FrmShiftItemDetail frm = new FrmShiftItemDetail();
     if (frm.ShowDialog() == DialogResult.OK)
     {
         ShiftItem item = frm.ShiftItem;
         item.ID = Guid.NewGuid();
         AddShiftItemToGridView(item);
     }
 }