protected ContextBoundCommand(DataVaultUIContext context) { Ctx = context; DataVaultEditor.ThreadSafeInvoke(() => { Branch = Tree.SelectedNode == null ? null : (IBranch)Tree.SelectedNode.Tag; Value = List.SelectedItems.Count == 0 ? null : (IValue)List.SelectedItems[0].Tag; }); }
public void Undo() { DataVaultEditor.ThreadSafeInvoke(UndoImpl); }
public void Do() { DataVaultEditor.ThreadSafeInvoke(DoImpl); }
public bool CanDo() { return(DataVaultEditor.ThreadSafeInvoke(() => CanDoImpl())); }