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

            viewForm.currentOperationsGuid = (Guid)operationsGridView.GetFocusedRowCellValue("GUID");
            viewForm.edit = true;
            viewForm.view = true;
            viewForm.ShowDialog();
        }
Example #3
0
 private void barButtonItemEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (OperationsForm editForm = new OperationsForm())
     {
         editForm.currentOperationsGuid = (Guid)operationsGridView.GetFocusedRowCellValue("GUID");
         editForm.edit = true;
         editForm.ShowDialog();
     }
     loadData();
 }