Ejemplo n.º 1
0
        private void CMenuAddAccount_Click(object sender, EventArgs e)
        {
            NewAccount na = new NewAccount(false)
            {
                mui = mui
            };

            if (na.ShowDialog() == DialogResult.OK && na.accountresult != null)
            {
                accounts.Add(na.accountresult);
                listView1_Refresh();
                saveAccountInfo();
            }
        }
Ejemplo n.º 2
0
 private void CMenuEditAccount_Click(object sender, EventArgs e)
 {
     if(listView1.SelectedIndices.Count < 1)
         return;
     NewAccount na = new NewAccount(true) { mui = mui, logininfo = accounts[listView1.SelectedIndices[0]] };
     if(na.ShowDialog() == DialogResult.OK && na.accountresult != null)
     {
         accounts[listView1.SelectedIndices[0]].Username = na.accountresult.Username;
         accounts[listView1.SelectedIndices[0]].Server = na.accountresult.Server;
         accounts[listView1.SelectedIndices[0]].Tribe = na.accountresult.Tribe;
         accounts[listView1.SelectedIndices[0]].Language = na.accountresult.Language;
         if(na.accountresult.Password != "")
             accounts[listView1.SelectedIndices[0]].Password = na.accountresult.Password;
         accounts[listView1.SelectedIndices[0]].GetOrPostTimesThreshold = na.accountresult.GetOrPostTimesThreshold;
         accounts[listView1.SelectedIndices[0]].GetOrPostDelaySeconds = na.accountresult.GetOrPostDelaySeconds;
         listView1_Refresh();
         saveAccountInfo();
     }
 }
Ejemplo n.º 3
0
 private void CMenuAddAccount_Click(object sender, EventArgs e)
 {
     NewAccount na = new NewAccount(false) { mui = mui };
     if(na.ShowDialog() == DialogResult.OK && na.accountresult != null)
     {
         accounts.Add(na.accountresult);
         listView1_Refresh();
         saveAccountInfo();
     }
 }