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); } }
//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); } }