public void SetupEditAnything(object sender, IMapsDirectlyToDatabaseTable o) { _activator.RequestItemEmphasis(this, new EmphasiseRequest(o, int.MaxValue)); var activate = new ExecuteCommandActivate(_activator, o); //activate it if possible if (!activate.IsImpossible) { activate.Execute(); } else { _activator.RequestItemEmphasis(this, new EmphasiseRequest(o, 1)); //otherwise just show it } }
public void LoadPersistString(IActivateItems activator, string persistString) { try { var s = persistString.Substring(Prefix.Length + 1); var pinValue = persistStringHelper.GetValueIfExistsFromPersistString("Pin", s); if (pinValue != null) { var toPin = persistStringHelper.GetObjectCollectionFromPersistString(pinValue, activator.RepositoryLocator).SingleOrDefault(); if (toPin != null) { activator.RequestItemEmphasis(this, new EmphasiseRequest(toPin) { Pin = true, ExpansionDepth = 2 }); } } } catch (Exception e) { activator.GlobalErrorCheckNotifier.OnCheckPerformed(new CheckEventArgs("Failed to LoadPersistString '" + persistString + "' for collection " + CollectionType, CheckResult.Fail, e)); } }
public override void HandleUserRequestingEmphasis(IActivateItems activator) { var collection = _control.GetCollection(); if (collection != null) { if (collection.DatabaseObjects.Count == 1) { activator.RequestItemEmphasis(this, new EmphasiseRequest(collection.DatabaseObjects[0])); } } }
public override void HandleUserRequestingEmphasis(IActivateItems activator) { var collection = _control.GetCollection(); if (collection != null) { if (collection.DatabaseObjects.Count >= 1) { var o = activator.SelectOne("Show", collection.DatabaseObjects.ToArray(), null, true); if (o != null) { activator.RequestItemEmphasis(this, new EmphasiseRequest(o)); } } } }
public void SetupEditCatalogue(object sender, Catalogue catalogue) { var tableInfo = catalogue.GetTableInfoList(false).FirstOrDefault(); _windowManager.CloseAllToolboxes(); _windowManager.CloseAllWindows(); _activator.RequestItemEmphasis(this, new EmphasiseRequest(catalogue, 2)); new ExecuteCommandActivate(_activator, catalogue).Execute(); _windowManager.Create(RDMPCollection.Tables, DockState.DockRight); if (tableInfo != null) { _activator.RequestItemEmphasis(this, new EmphasiseRequest(tableInfo, 1)); } }
protected override void OnMouseClick(MouseEventArgs e) { base.OnMouseClick(e); foreach (KeyValuePair <Rectangle, Catalogue> kvp in rectNoDQE.Where(r => r.Key.Contains(e.Location))) { _activator.RequestItemEmphasis(this, new EmphasiseRequest(kvp.Value)); } foreach (KeyValuePair <Rectangle, Catalogue> kvp in rectDeleteButtons.Where(r => r.Key.Contains(e.Location)).ToList()) { if (RequestDeletion != null) { lock (oPeriodicityDictionaryLock) { RequestDeletion(kvp.Value); //stop rendering this Catalogue _periodicityDictionary.Remove(kvp.Value); Invalidate(); } } } }
public override void HandleUserRequestingEmphasis(IActivateItems activator) { activator.RequestItemEmphasis(this, new EmphasiseRequest(DatabaseObject)); }
protected void Emphasise(DatabaseEntity o, int expansionDepth = 0) { _activator.RequestItemEmphasis(this, new EmphasiseRequest(o, expansionDepth)); }