public SunbirdMBWindowViewModel(SunbirdMBGame sunbirdMBGame) { SunbirdMBGame = sunbirdMBGame; C_Sort = new RelayCommand((o) => SortCubes()); C_Save = new RelayCommand((o) => SaveGame()); C_Exit = new RelayCommand((o) => ExitAppWithoutSaving()); CubeDesignerViewModel = new CubeDesignerViewModel(sunbirdMBGame); decoCatalogViewModel = new DecoCatalogViewModel(sunbirdMBGame); LoggerViewModel = new LoggerViewModel(); MainToolbarViewModel = new MainToolbarViewModel(this); }
public MainViewModel(IDataService dataService, ProcessListViewModel processListViewModel, MainToolbarViewModel mainToolbarViewModel, ProcessOutputViewModel processOutputViewModel, HubConnectionViewModel hubConnectionViewModel, ProcessManager processManager) { ProcessListViewModel = processListViewModel; MainToolbarViewModel = mainToolbarViewModel; ProcessOutputViewModel = processOutputViewModel; HubConnectionViewModel = hubConnectionViewModel; ProcessManager = processManager; RegisterMessages(); RegisterEvents(); openExecutableDialog = new OpenFileDialog() { InitialDirectory = System.Reflection.Assembly.GetExecutingAssembly().Location, Filter = "Pliki wykonywalne (*.exe)|*.exe", FilterIndex = 1, RestoreDirectory = true, }; }