public Descriptions(MainForm mainform, object settings) { InitializeComponent(); _settings = (Properties.Settings)settings; parentForm = mainform; twitchWeb = parentForm.twitchWeb; sc2tv = parentForm.sc2tv; cybergame = parentForm.cybergame; ggChat = parentForm.ggChat; gohaweb = parentForm.gohaTVstream; if (sc2tv != null && sc2tv.LoggedIn) { sc2tvCol = new AutoCompleteStringCollection(); sc2tvCol.AddRange(sc2tv.GameList.Select(v => v.Value).ToArray()); textWebSourceSc2tvGame.Autocompletedata = sc2tvCol; } if (ggChat != null && ggChat.isLoggedIn) { ggCol = new AutoCompleteStringCollection(); textWebSourceGGGame.Autocompletedata = ggCol; ggCol.AddRange(ggChat.GameList.Select(v => v.Value).ToArray()); } if (twitchWeb != null) { twitchCol = new AutoCompleteStringCollection(); twitchCol.AddRange(new string[]{}); textWebSourceTwitchGame.Autocompletedata = twitchCol; } if (cybergame != null && cybergame.isLoggedIn) { cyberCol = new AutoCompleteStringCollection(); cyberCol.AddRange(cybergame.GameList.ToList().Select(v => v.Value).ToArray()); webAutocompleteCybergame.Autocompletedata = cyberCol; } textBoxProfile.Text = _settings.currentProfile; }
public Descriptions(MainForm mainform, object settings) { InitializeComponent(); _settings = (Properties.Settings)settings; parentForm = mainform; twitchWeb = parentForm.twitchWeb; sc2tv = parentForm.sc2tv; cybergame = parentForm.cybergame; ggChat = parentForm.ggChat; gohaweb = parentForm.gohaTVstream; if (sc2tv != null && sc2tv.LoggedIn) { sc2tvCol = new AutoCompleteStringCollection(); sc2tvCol.AddRange(sc2tv.GameList.Select(v => v.Value).ToArray()); textWebSourceSc2tvGame.Autocompletedata = sc2tvCol; } if (ggChat != null && ggChat.isLoggedIn) { ggCol = new AutoCompleteStringCollection(); textWebSourceGGGame.Autocompletedata = ggCol; ggCol.AddRange(ggChat.GameList.Select(v => v.Value).ToArray()); } if (twitchWeb != null) { twitchCol = new AutoCompleteStringCollection(); twitchCol.AddRange(new string[] {}); textWebSourceTwitchGame.Autocompletedata = twitchCol; } if (cybergame != null && cybergame.isLoggedIn) { cyberCol = new AutoCompleteStringCollection(); cyberCol.AddRange(cybergame.GameList.ToList().Select(v => v.Value).ToArray()); webAutocompleteCybergame.Autocompletedata = cyberCol; } textBoxProfile.Text = _settings.currentProfile; }