private void btnNewAccount_Click(object sender, EventArgs e)
 {
     EnterAccountDetails details = new EnterAccountDetails();
     if (details.ShowDialog() != DialogResult.Cancel)
     {
         details.Account.UpdateCharList(true);
         _accounts.Add(details.Account);
         if (_removedAccounts.Contains(details.Account))
         {
             _removedAccounts.Remove(details.Account);
         }
         foreach (APICharacter apiChar in details.Account.Chars)
         {
             bool x = apiChar.CharIncWithRptGroup;
             x = apiChar.CorpIncWithRptGroup;
         }
     }
     ShowAccounts();
 }
        private void eveAccountsGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                EVEAccount account = eveAccountsGrid.Rows[e.RowIndex].DataBoundItem as EVEAccount;

                if (account != null)
                {
                    EnterAccountDetails details = new EnterAccountDetails(account);
                    if (details.ShowDialog() != DialogResult.Cancel)
                    {
                        account.ApiKey = details.Account.ApiKey;
                    }
                }
            }
        }