예제 #1
0
 private void buttonQuickLogin_Click(object sender, EventArgs e)
 {
     var dia = new Add("Connect");
     if (dia.ShowDialog(this) == DialogResult.OK)
     {
         DoLogin(dia.LoginData);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 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);
     }
 }