private void buttonQuickLogin_Click(object sender, EventArgs e) { var dia = new Add("Connect"); if (dia.ShowDialog(this) == DialogResult.OK) { DoLogin(dia.LoginData); } }
private void buttonEdit_Click(object sender, EventArgs e) { var id = listBoxAccounts.SelectedIndex; var dia = new Add("Save", SelectedData); if (dia.ShowDialog(this) == DialogResult.OK) { SettingsManager.Save(); listBoxAccounts.Items[id] = DataToString(dia.LoginData); } }
private void buttonAdd_Click(object sender, EventArgs e) { var dia = new Add("Add"); if (dia.ShowDialog(this) == DialogResult.OK) { SettingsManager.LoginDatas.Add(dia.LoginData); SettingsManager.Save(); Add(dia.LoginData); } }