public MainWindowViewModel( IStringsProvider stringsProvider, HamburgerMenuViewModel hamburgerMenuViewModel, GameControlViewModel gameControlViewModel, DataViewModel dataViewModel, SettingsViewModel settingsViewModel) : base(stringsProvider) { HamburgerMenuViewModel = hamburgerMenuViewModel; GameControlViewModel = gameControlViewModel; DataViewModel = dataViewModel; SettingsViewModel = settingsViewModel; }
/// <summary> /// Initializes a new instance of the <see cref="MainControlViewModel" /> class. /// </summary> /// <param name="themeControl">The theme control.</param> /// <param name="languageControl">The language control.</param> /// <param name="gameControl">The game control.</param> /// <param name="modControl">The mod control.</param> /// <param name="options">The options.</param> /// <param name="shortcuts">The shortcuts.</param> public MainControlViewModel(ThemeControlViewModel themeControl, LanguageControlViewModel languageControl, GameControlViewModel gameControl, ModHolderControlViewModel modControl, OptionsControlViewModel options, ShortcutsControlViewModel shortcuts) { ThemeSelector = themeControl; LanguageSelector = languageControl; GameSelector = gameControl; ModHolder = modControl; Options = options; Shortcuts = shortcuts; }
/// <summary> /// Initializes a new instance of the <see cref="MainControlViewModel" /> class. /// </summary> /// <param name="themeControl">The theme control.</param> /// <param name="languageControl">The language control.</param> /// <param name="gameControl">The game control.</param> /// <param name="modControl">The mod control.</param> /// <param name="options">The options.</param> /// <param name="actions">The actions.</param> public MainControlViewModel(ThemeControlViewModel themeControl, LanguageControlViewModel languageControl, GameControlViewModel gameControl, ModHolderControlViewModel modControl, OptionsControlViewModel options, ActionsControlViewModel actions) { ThemeSelector = themeControl; LanguageSelector = languageControl; GameSelector = gameControl; ModHolder = modControl; Options = options; Actions = actions; }
public GameCommands(GameControlViewModel gameControlViewModel) { this.gameControlViewModel = gameControlViewModel; }
public GameControl(string gameId, Action rebuildGameGrid, Action <bool> progressStartStop) { InitializeComponent(); ViewModel = new GameControlViewModel(gameId, rebuildGameGrid); }