public override void ExecuteAction(molAction action, bool nested) { try { #if TRACE PgMng.Record(String.Format("ItemMngBaseForm::ExecuteAction {0} INI", action.ToString())); #endif if (!nested) { if (Status == EStatus.Working) { return; } Status = EStatus.Working; _current_action = action; //Se usa un atributo porque si uso el DialogResult el ShowDialog entiende que quiero cerrar el formulario _action_result = DialogResult.Ignore; } DoExecuteAction(action); #if TRACE PgMng.Record(String.Format("ItemMngBaseForm::ExecuteAction {0} END", action.ToString())); #endif } catch (iQValidationException ex) { Control control = ControlsMng.GetControlByProperty(Controls, ex.Field); if (control != null) { MarkError(control, ex.Message); } else { PgMng.ShowWarningException(ex); } } catch (Exception ex) { PgMng.ShowErrorException(ex); } finally { Status = EStatus.OK; if (PgMng != null) { PgMng.FillUp(); } } }
public override void FitColumns() { List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Nombre.Tag = 0.3; DefaultSchema.Tag = 0.7; cols.Add(Nombre); cols.Add(DefaultSchema); ControlsMng.MaximizeColumns(Tabla, cols); }
public override void FitColumns() { List <DataGridViewColumn> cols = new List <DataGridViewColumn>(); Usuario.Tag = 1; cols.Add(Item); ControlsMng.MaximizeColumns(Users_DGW, cols); cols.Clear(); cols = new List <DataGridViewColumn>(); Item.Tag = 1; cols.Add(Item); ControlsMng.MaximizeColumns(Privileges_DGW, cols); }