Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 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;
 }