Пример #1
0
 public MainWindow()
 {
     InitializeComponent();
     ViewModel.MainWindowViewModel vm = new ViewModel.MainWindowViewModel();
     this.DataContext = vm;
     if (vm.CloseAction == null)
     {
         vm.CloseAction = new Action(Close);
     }
     Closing += vm.OnClosing;
 }
Пример #2
0
 public AboutTabViewModel(MainWindowViewModel mainWindowViewModel)
 {
     this.mainWindowViewModel = mainWindowViewModel;
     GetPluginsElements();
 }