Exemplo n.º 1
0
        public NumerationVM(NumerationView view)
        {
            Window           = view;
            view.DataContext = this;
            Options          = new SSOptionsVM();
            Select           = new SSSelect(this);
            Update           = new RelayCommand(() => UpdateExec(Select.SheetSet, true));
            Numeration       = new RelayCommand(() => UpdateExec(Select.SheetSet, false));
            Collapse         = new RelayCommand(() => ExpandTreeView = false);
            Expand           = new RelayCommand(() => ExpandTreeView = true);
            PropsVM          = new PropsVM(this);
            BatchVM          = new BatchVM(this);

            Window.Initialized += OnInitialize;
            Window.Closed      += OnClosed;
            OnInitialize(null, null);
        }
Exemplo n.º 2
0
 public SSOptionsView(SSOptionsVM vm)
 {
     InitializeComponent();
     DataContext = vm;
 }