Ejemplo n.º 1
0
 private void popAccounts()
 {
     foreach (string credentials in Properties.Settings.Default.accounts) {
         Account account = new Account(this);
         account.show_balloon += new Account.balloon_event(on_balloon_event);
         string[] split = credentials.Split(new char[] { ':' }, 4);
         account.username.Text = split[0];
         account.password.Password = this.decryptPass(rjm, split[1]);
         this.accountsPanel.Items.Add(account);
         this.accountsPanel.SelectedItem = this.accountsPanel.Items[0];
     }
 }
Ejemplo n.º 2
0
 private void addAccount_Click(object sender, RoutedEventArgs e)
 {
     Account acc = new Account(this);
     acc.show_balloon += new Account.balloon_event(on_balloon_event);
     this.accountsPanel.Items.Add(acc);
     this.accountsPanel.SelectedItem = acc;
     this.user.Focus();
     this.user.SelectAll();
 }