Beispiel #1
0
 private void ShowEditForm()
 {
     if (gridViewProcedure.GetFocusedRow() is ProcedureBl selected)
     {
         var form = new EditProcedureForm(_repo, selected);
         form.ShowDialog();
         form.Dispose();
     }
 }
Beispiel #2
0
        private void barButtonItemAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var form = new EditProcedureForm(_repo);

            if (form.ShowDialog() == DialogResult.OK)
            {
                RefreshGrid();
                form.Dispose();
                gridViewProcedure.FocusedRowHandle = _items.Count - 1;
            }
        }