public MainWindowViewModel(MenuColorViewModel menuColorViewModel, StreamOverlayViewModel streamOverlayViewModel, NameBiddingViewModel nameBiddingViewModel, SettingsViewModel settingsViewModel, IChatBot chatBot) { MenuColorViewModel = menuColorViewModel; NameBiddingViewModel = nameBiddingViewModel; SettingsViewModel = settingsViewModel; StreamOverlayViewModel = streamOverlayViewModel; ChatBot = chatBot; ConnectBotCommand = new SimpleCommand(x => ChatBot.Connect()); DisconnectBotCommand = new SimpleCommand(x => ChatBot.Disconnect()); }
public MainWindowViewModel(MenuColorViewModel menuColorViewModel, StreamOverlayViewModel streamOverlayViewModel, NameBiddingViewModel nameBiddingViewModel, SettingsViewModel settingsViewModel, IShowTwitchAuthCommand showTwitchAuthCommand, IChatBot chatBot, IDataStore <CharacterNameBid> dataStore) { MenuColorViewModel = menuColorViewModel; NameBiddingViewModel = nameBiddingViewModel; SettingsViewModel = settingsViewModel; StreamOverlayViewModel = streamOverlayViewModel; ChatBot = chatBot; ConnectBotCommand = new SimpleCommand(x => ChatBot.Connect()); DisconnectBotCommand = new SimpleCommand(x => ChatBot.Disconnect()); OpenTwitchAuthWindow = showTwitchAuthCommand; }