Exemple #1
0
 private void buttonQuickLogin_Click(object sender, EventArgs e)
 {
     var dia = new Add("Connect");
     if (dia.ShowDialog(this) == DialogResult.OK)
     {
         DoLogin(dia.LoginData);
     }
 }
Exemple #2
0
        private void buttonQuickLogin_Click(object sender, EventArgs e)
        {
            var dia = new Add("Connect");

            if (dia.ShowDialog(this) == DialogResult.OK)
            {
                this.DoLogin(dia.LoginData);
            }
        }
Exemple #3
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);
     }
 }
Exemple #4
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);
     }
 }
Exemple #5
0
        private void buttonEdit_Click(object sender, EventArgs e)
        {
            var id  = this.listBoxAccounts.SelectedIndex;
            var dia = new Add("Save", this.SelectedData);

            if (dia.ShowDialog(this) == DialogResult.OK)
            {
                SettingsManager.Save();
                this.listBoxAccounts.Items[id] = DataToString(dia.LoginData);
            }
        }
Exemple #6
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();
                this.Add(dia.LoginData);
            }
        }