private void test(object sender, RoutedEventArgs e)
        {
            BDD  mybdd = new BDD();
            User user  = new User();

            mybdd.getUser("jrambo", ref user);

            Console.WriteLine("{0}\t{1}\t{2}", user.userID, user.firstName, user.lastName);

            List <Card> listCards = new List <Card>();

            mybdd.getAllCards(ref user, ref listCards);

            foreach (Card card in listCards)
            {
                Console.WriteLine("{0}\t{1}\t{2}\t{3}", card.cardID, card.number, card.expiration.Month, card.expiration.Year);
            }
        }
예제 #2
0
        private void getUserCards(ref List <Card> listCards)
        {
            BDD mybdd = new BDD();

            mybdd.getAllCards(ref user, ref listCards);
        }