private void mephobiaButton5_Click(object sender, EventArgs e) { FrmAccEdit form4 = new FrmAccEdit(); form4.ShowDialog(); comboBox1.Items.Clear(); LoadXMLAccountsToComboBox(); }
private void mephobiaButton6_Click(object sender, EventArgs e) { try { FrmAccEdit form4 = new FrmAccEdit(comboBox1.SelectedItem.ToString(), ConfigDao.AccountsDataList[comboBox1.SelectedItem.ToString()]); form4.ShowDialog(); LoadXMLAccountsToComboBox(); comboBox1.Refresh(); comboBox1.ResetText(); } catch (NullReferenceException) { MessageBox.Show("No account selected!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }