private void button10_Click(object sender, EventArgs e) { string toonList = String.Join(",", FuEQ.GetToons()); MessageBox.Show(toonList); //MessageBox.Show(FuEQ.GetEQFolderForToon("havanap")); //FuEQ.SetEQFolderForToon(txtEqCharacter.Text, txtEqFolder.Text); }
private void button11_Click(object sender, EventArgs e) { List <string> toons = FuEQ.GetToons(); m_currentToon = txtEqCharacter.Text; m_currentServer = txtEqServer.Text; toons.Add(String.Format("{0} - {1}", m_currentServer, m_currentToon)); FuEQ.SetToons(toons); LoadConfig(); }
private void LoadConfig() { cmbToons.Items.Clear(); cmbToons.Items.AddRange(FuEQ.GetToons().ToArray()); if (cmbToons.Items.Count > 0) { cmbToons.Enabled = true; if (m_currentToon.Length > 0 && m_currentServer.Length > 0) { int i = cmbToons.Items.IndexOf(String.Format("{0} - {1}", m_currentServer, m_currentToon)); if (i > -1) { cmbToons.SelectedIndex = i; } } else if (cmbToons.Items.Count > 0) { cmbToons.SelectedIndex = 0; } string[] toonBits = cmbToons.Items[cmbToons.SelectedIndex].ToString().Split(new string[] { " - " }, StringSplitOptions.None); if (toonBits.Length == 2) { m_currentToon = toonBits[1]; m_currentServer = toonBits[0]; EnableRestOfUI(); } } else { cmbToons.Enabled = false; // force them to add a toon DisableRestOfUI(); } txtEqFolder.Text = FuEQ.GetEQFolderForToon(m_currentToon, m_currentServer); // txtEqFolder.Text = Cfg.get("EqFolder"); txtLootMinutes.Text = Cfg.get("LootMinutes"); txtLootLookupMinutes.Text = Cfg.get("LootLookupMinutes"); txtEqCharacter.Text = ""; txtEqServer.Text = "bristle"; txtFuUsername.Text = Cfg.getEncrypted("HttpUsername"); txtFuPassword.Text = Cfg.getEncrypted("HttpPassword"); }