private void Button_Click(object sender, RoutedEventArgs e) { AccountMgr am = new AccountMgr(); Account a = am.GenerateAccount(); MessageBox.Show(a.Print()); }
private void Button_Click_2(object sender, RoutedEventArgs e) { string amt_s = AmountBox.Text; double amt = Convert.ToDouble(amt_s); string currency = CurrencyBox.Text; string date = DateBox.Text; Deposit d = new DOMAIN.Deposit(amt, currency, date); AccountMgr am = new AccountMgr(); Account a = am.GenerateAccount(); IList <Transaction> tt = am.GenerateTList(); DepositMgr dm = new DepositMgr(); dm.ProcessDeposit(d, a, tt); }