Beispiel #1
0
        private void editAccount()
        {
            Console.WriteLine("Selected (Editing) Indices: {0}", accountList.SelectedIndices[0]);
            if (accountList.SelectedIndices.Count.Equals(0))
            {
                return;
            }

            ListViewItem       selectedItem = accountList.SelectedItems[0];
            int                accID        = Convert.ToInt32(selectedItem.Text);
            AccountInformation selectedAccount;

            using (LeafSecurityEntities db = new LeafSecurityEntities())
            {
                selectedAccount = (from acc in db.AccountInformations
                                   where acc.AccountID.Equals(accID)
                                   select acc).FirstOrDefault();
            }

            AccountForm accForm = new AccountForm(selectedAccount);

            accForm.Show();
        }
Beispiel #2
0
 private void DashBoardForm_Load(object sender, EventArgs e)
 {
     populateAccountList();
     accountForm = new AccountForm();
 }
Beispiel #3
0
        // Helper Functions
        private void OpenAddAccountForm()
        {
            AccountForm addAccountForm = new AccountForm();

            addAccountForm.ShowDialog(this);
        }