C# Class OakBot.MainWindow

Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
Show file Open project: ocgineer/OakBot Class Usage Examples

Public Properties

Property Type Description
accountBot TwitchCredentials
accountStreamer TwitchCredentials
botChatConnection TwitchChatConnection
colBotCommands ObservableCollection
colChatMessages ObservableCollection
colChatWindows ObservableCollection
colDatabase ObservableCollection
colGiveaways ObservableCollection
colQuotes ObservableCollection
colSongs ObservableCollection
colViewers ObservableCollection
discord Discord.DiscordClient
indexSong int
instance MainWindow
playState bool
streamerChatConnection TwitchChatConnection
testGw Giveaway

Public Methods

Method Description
DisconnectBot ( ) : void
DisconnectStreamer ( ) : void
LoadConfigToUI ( ) : void
MainWindow ( ) : Discord
nextSong ( ) : void
popMsgBox ( string text ) : void
prevSong ( ) : void

Private Methods

Method Description
ChatSend_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
ConnectBot ( ) : void
ConnectStreamer ( ) : void
DatabaseFilter ( object item ) : bool
Discord_MessageReceived ( object sender, Discord.MessageEventArgs e ) : void
OakBot_Closing ( object sender, System e ) : void
RunManualCommercial ( int length ) : void
SpeakAs_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
btn120Secs_Click ( object sender, RoutedEventArgs e ) : void
btn150Secs_Click ( object sender, RoutedEventArgs e ) : void
btn180Secs_Click ( object sender, RoutedEventArgs e ) : void
btn30Sec_Click ( object sender, RoutedEventArgs e ) : void
btn60Sec_Click ( object sender, RoutedEventArgs e ) : void
btn90Secs_Click ( object sender, RoutedEventArgs e ) : void
btnAddEditGw_Click ( object sender, RoutedEventArgs e ) : void
btnBotConnect_Click ( object sender, RoutedEventArgs e ) : void
btnDatabaseCleanup_Click ( object sender, RoutedEventArgs e ) : void
btnImport_Click ( object sender, RoutedEventArgs e ) : void
btnLogin_Click ( object sender, RoutedEventArgs e ) : void
btnNext_Click ( object sender, RoutedEventArgs e ) : void
btnPlay_Click ( object sender, RoutedEventArgs e ) : void
btnPlayerCtl_Click ( object sender, RoutedEventArgs e ) : void
btnPrev_Click ( object sender, RoutedEventArgs e ) : void
btnRefresh_Click ( object sender, RoutedEventArgs e ) : void
btnStreamerConnect_Click ( object sender, RoutedEventArgs e ) : void
btnUpdate_Click ( object sender, RoutedEventArgs e ) : void
btnViewerAddPoints_Click ( object sender, RoutedEventArgs e ) : void
buttonBotConnect_Click ( object sender, RoutedEventArgs e ) : void
buttonStreamerConnect_Click ( object sender, RoutedEventArgs e ) : void
button_Click ( object sender, RoutedEventArgs e ) : void
cbAutoConnectBot_Checked ( object sender, RoutedEventArgs e ) : void
cbAutoConnectBot_Unchecked ( object sender, RoutedEventArgs e ) : void
cbAutoConnectStreamer_Checked ( object sender, RoutedEventArgs e ) : void
cbAutoConnectStreamer_Unchecked ( object sender, RoutedEventArgs e ) : void
colChatMessages_Changed ( object sender, NotifyCollectionChangedEventArgs e ) : void
comboBox_Copy_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
comboBox_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
listViewChat_MouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
lvGiveaways_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
lvSongs_MouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
lvViewerDatabase_MouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
slider_ValueChanged ( object sender, RoutedPropertyChangedEventArgs e ) : void
tbFilterOnName_TextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
textBoxBotName_LostFocus ( object sender, RoutedEventArgs e ) : void
textBoxStreamerName_LostFocus ( object sender, RoutedEventArgs e ) : void
txtToken_LostFocus ( object sender, RoutedEventArgs e ) : void

Method Details

DisconnectBot() public method

public DisconnectBot ( ) : void
return void

DisconnectStreamer() public method

public DisconnectStreamer ( ) : void
return void

LoadConfigToUI() public method

public LoadConfigToUI ( ) : void
return void

MainWindow() public method

public MainWindow ( ) : Discord
return Discord

nextSong() public method

public nextSong ( ) : void
return void

popMsgBox() public static method

public static popMsgBox ( string text ) : void
text string
return void

prevSong() public method

public prevSong ( ) : void
return void

Property Details

accountBot public property

public TwitchCredentials,OakBot accountBot
return TwitchCredentials

accountStreamer public property

public TwitchCredentials,OakBot accountStreamer
return TwitchCredentials

botChatConnection public property

public TwitchChatConnection,OakBot botChatConnection
return TwitchChatConnection

colBotCommands public static property

public static ObservableCollection colBotCommands
return ObservableCollection

colChatMessages public static property

public static ObservableCollection colChatMessages
return ObservableCollection

colChatWindows public static property

public static ObservableCollection colChatWindows
return ObservableCollection

colDatabase public static property

public static ObservableCollection colDatabase
return ObservableCollection

colGiveaways public static property

public static ObservableCollection colGiveaways
return ObservableCollection

colQuotes public static property

public static ObservableCollection colQuotes
return ObservableCollection

colSongs public static property

public static ObservableCollection colSongs
return ObservableCollection

colViewers public static property

public static ObservableCollection colViewers
return ObservableCollection

discord public static property

public static DiscordClient,Discord discord
return Discord.DiscordClient

indexSong public static property

public static int indexSong
return int

instance public static property

public static MainWindow,OakBot instance
return MainWindow

playState public static property

public static bool playState
return bool

streamerChatConnection public property

public TwitchChatConnection,OakBot streamerChatConnection
return TwitchChatConnection

testGw public property

public Giveaway,OakBot testGw
return Giveaway