public MainWindow() { InitializeComponent(); SetupViewports(); App.LoadSettings(); _fileTreeMenu = new FileTreeViewContextManager(this, treeView); _viewModel = new MainWindowViewModel(this, App.Settings.Get<string>("Files.DataPath", "")); DataContext = _viewModel; var binding = new CommandBinding(ApplicationCommands.Properties); binding.Executed += Properties_Executed; binding.CanExecute += Properties_CanExecute; this.CommandBindings.Add(binding); var lastLoadedFile = App.Settings.Get<string>("Files.LastLoadedFile", ""); if (!string.IsNullOrEmpty(lastLoadedFile)) { _viewModel.LoadFile(lastLoadedFile); } }
public LevelViewModel(MainWindowViewModel mainViewWindow) : base(mainViewWindow) { _objectManager = new ObjectManager(this); }
public ModelViewModel(MainWindowViewModel mainViewWindow) : base(mainViewWindow) { _modelView = MainViewModel.MainWindow.modelView; }
public SkeletonViewModel(MainWindowViewModel mainViewWindow) : base(mainViewWindow) { }
public BaseViewModel(MainWindowViewModel mainViewModel) { MainViewModel = mainViewModel; }