Exemplo n.º 1
0
 private void ShowEditForm()
 {
     if (gridViewBase.GetFocusedRow() is BaseBl selected)
     {
         var form = new EditBaseForm(_repo, selected);
         form.ShowDialog();
         form.Dispose();
     }
 }
Exemplo n.º 2
0
        private void barButtonItemAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var form = new EditBaseForm(_repo);

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