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); }
public SSOptionsView(SSOptionsVM vm) { InitializeComponent(); DataContext = vm; }