private void Btn_Login_Click(object sender, RoutedEventArgs e) { Login(); var win = new TwitchBotWin(); win.Show(); this.Close(); }
public TwitchBotWin() { InitializeComponent(); WinRef = this; userListClass = new UserListClass(); BindingOperations.EnableCollectionSynchronization(userListClass.UserList, lockObj); dataGrid_UserList.ItemsSource = userListClass.UserList; grid_UserList.Visibility = Visibility.Visible; grid_Message.Visibility = Visibility.Collapsed; apiClass = new TwitchApi(); infoAboutStreamClass = new StreamInformation(); twitchClient = new TwitchBotClient("jnkstv", File.ReadAllText(@"C:\Users\Janniks-Pc\Documents\Pw\TwitchOAuthToken.txt"), "SentioLIVE"); }