예제 #1
0
        private void bValidate_Click(object sender, RoutedEventArgs e)
        {
            DateTime expiration = new DateTime(Int32.Parse(tbYear.Text), month, 1);

            number = StringCipher.Encrypt(tbNumber.Text, user.login);
            Card card = new Card(0, number, expiration, type, user.userID);

            BDD mybdd = new BDD();

            mybdd.addCard(card);
        }
        private void addCard(ref Card card)
        {
            BDD mybdd = new BDD();

            mybdd.addCard(card);
        }