Beispiel #1
0
        public NewPage()
        {
            show = 1;
            this.InitializeComponent();
            isOnlyWrongQues = false;
            correctNum      = 0;
            totalNum        = 1;
            curWrong        = 0;

            //初始状态的时候插入一条用于检测的
            DataBase.DbContext sql = new DataBase.DbContext();
            this.ViewModel = new DataBase.ItemViewModel();
            getQuestionFromDB();
        }
Beispiel #2
0
        private int count_reminder = 0; // 剩余题目
        public MyPage()
        {
            this.InitializeComponent();
            var viewTitleBar = Windows.UI.ViewManagement.ApplicationView.GetForCurrentView().TitleBar;

            viewTitleBar.BackgroundColor       = Windows.UI.Colors.CornflowerBlue;
            viewTitleBar.ButtonBackgroundColor = Windows.UI.Colors.CornflowerBlue;
            show = 1;
            this.InitializeComponent();
            isOnlyWrongQues = false;
            correctNum      = 0;
            totalNum        = 1;
            curWrong        = 0;

            //初始状态的时候插入一条用于检测的
            DataBase.DbContext sql = new DataBase.DbContext();
            this.ViewModel = new DataBase.ItemViewModel();
            getQuestionFromDB();
            count();
            allquestion.Text = count_all.ToString();
            shengyu.Text     = count_reminder.ToString();
            shoucang.Text    = count_collect.ToString();
            wrong.Text       = count_wrong.ToString();
        }