コード例 #1
0
ファイル: Dashboard.xaml.cs プロジェクト: ssubedir/Best-Books
        public Dashboard(UserData u)
        {
            InitializeComponent();
            this.user   = u;
            bookHistory = new BookCatalog();
            bookCart    = new BookCart();

            dsBookHistory       = bookHistory.load_History(user.UserID);
            this.DataContext    = dsBookHistory.Tables["History"];
            cart_val.Content    = "" + bookCart.cartItems(user.UserID);
            total_books.Content = "" + bookCart.totalBooks(user.UserID);
            total_money.Content = "$" + bookCart.totalPrice(user.UserID);
        }