Exemplo n.º 1
0
 public VMmasterModel(MasterModel root)
 {
     this.root          = root;
     this.model         = new VMdataModel(this.root.Model); //Instantiate model first!
     this.contracts     = new VMcontractCollection(this.root.Contracts, this);
     this.authorization = null;
 }
Exemplo n.º 2
0
        public VMselectVariable(SelectVariableWindow parent, VMvariableList variables, VMdataModel model) : base()
        {
            this.parent     = parent;
            this.list       = variables;
            this.model      = model;
            this.output     = new VMvariableLink(new VariableLink(new MyVariable(typeof(Nullable))));
            this.properties = new ObservableCollection <Contract.Block.VMvariable>();

            this.CommandTreeSelectionChanged = new DelegateCommand <object>(this.TreeSelectionChanged);
            this.CommandListSelectionChanged = new DelegateCommand <object>(this.ListSelectionChanged);
            this.CommandRemoveProperty       = new DelegateCommand(this.RemoveProperty, this.CanRemoveProperty);
            this.CommandConfirm = new DelegateCommand(this.Confirm, this.CanConfirm);
        }