Ejemplo n.º 1
0
        //this method creates a customer with the parameters given
        //using information supplied from the GUI and adds that
        //customer to the list of customers in the bank
        public Customer CreateCustomer(string aSSN, string acustomerName, string acustomerAddress,
            string acustomerCity, string acustomerState, string acustomerZIP,
            string acustomerPhone, string acustomerEmail)
        {
            Customer customer = new Customer(aSSN, acustomerName, acustomerAddress,
            acustomerCity, acustomerState, acustomerZIP,
            acustomerPhone, acustomerEmail);

            customers.Add(customer);

            return customer;
        }
Ejemplo n.º 2
0
        //a wild constructor appears!
        public Bank_Account(Customer aCustomer, double anaccountBalance,
            DateTime adateAcctOpened, int anumberOfChecks, double aninterestEarnings)
        {
            customer = aCustomer;
            accountBalance = anaccountBalance;
            dateAcctOpened = adateAcctOpened;
            numberOfChecks = anumberOfChecks;
            interestEarnings = aninterestEarnings;

            accountNumber = Guid.NewGuid().ToString();
            //this says that the account number property
            //is to be given a random, application generated,
            //and unique ID which is then passed to a string
            //at the beginning to put it into text boxes

            MontlyFeeDates = new List<DateTime>();
            //This was going the be used to see if the user
            //had already applied fees this month, but again
            //it became a lot more time consuming than estimated
            //dat scope creep
        }