示例#1
0
        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;
            });
        }
示例#2
0
 public void Undo()
 {
     DataVaultEditor.ThreadSafeInvoke(UndoImpl);
 }
示例#3
0
 public void Do()
 {
     DataVaultEditor.ThreadSafeInvoke(DoImpl);
 }
示例#4
0
 public bool CanDo()
 {
     return(DataVaultEditor.ThreadSafeInvoke(() => CanDoImpl()));
 }