Exemplo n.º 1
0
 private void barButtonItemAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (WorkShiftsForm addForm = new WorkShiftsForm())
     {
         addForm.ShowDialog();
         addForm.Dispose();
     }
     loadData();
 }
Exemplo n.º 2
0
        private void barButtonItemView_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            WorkShiftsForm viewForm = new WorkShiftsForm();

            viewForm.currentWorkShiftsGuid = (Guid)workShiftsGridView.GetFocusedRowCellValue("GUID");
            viewForm.edit = true;
            viewForm.view = true;
            viewForm.ShowDialog();
        }
Exemplo n.º 3
0
 private void barButtonItemEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (WorkShiftsForm editForm = new WorkShiftsForm())
     {
         editForm.currentWorkShiftsGuid = (Guid)workShiftsGridView.GetFocusedRowCellValue("GUID");
         editForm.edit = true;
         editForm.ShowDialog();
     }
     loadData();
 }