示例#1
0
 private void loginBot1_Click(object sender, RoutedEventArgs e)
 {
     if (listView1.SelectedItem != null)
     {
         Hide();
         BotMainWindow BMW = new BotMainWindow();
         BMW.Show(accountsArray[listView1.SelectedIndex].username, accountsArray[listView1.SelectedIndex].password, this);
     }
 }
示例#2
0
 //login on bot
 private void loginBot1_Click(object sender, RoutedEventArgs e)
 {
     if (listView1.SelectedItem != null)
     {
         Hide();
         BotMainWindow BMW     = new BotMainWindow();
         UserAccount   account = (UserAccount)AccountController.userAccounts[listView1.SelectedIndex];
         BMW.Show(account.username, Cryptography.Decrypt(account.password, encryptionKey), this);
     }
 }