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;
            });
        }
Beispiel #2
0
 public DataVaultUIContext(DataVaultEditor dataVaultEditor)
 {
     _dataVaultEditor = dataVaultEditor;
 }
 public void Undo()
 {
     DataVaultEditor.ThreadSafeInvoke(UndoImpl);
 }
 public void Do()
 {
     DataVaultEditor.ThreadSafeInvoke(DoImpl);
 }
 public bool CanDo()
 {
     return(DataVaultEditor.ThreadSafeInvoke(() => CanDoImpl()));
 }
 public DataVaultUIContext(DataVaultEditor dataVaultEditor)
 {
     _dataVaultEditor = dataVaultEditor;
 }