Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            //Insert, read and update test data (user)
            APIDemo.DemoUserCreate();
            APIDemo.DemoUserRead();
            APIDemo.DemoUserUpdate();

            //Insert, read and update test data (word)
            APIDemo.DemoWordCreate();
            APIDemo.DemoWordRead();
            APIDemo.DemoUserUpdate();

            //Insert, read and update test data (highscore)
            APIDemo.DemoHighscoreCreate();
            APIDemo.DemoHighscoreRead();
            APIDemo.DemoHighscoreUpdate();

            //Delete all test data
            APIDemo.DemoHighscoreDelete();
            APIDemo.DemoWordDelete();
            APIDemo.DemoUserDelete();

            _timer.Interval = TimeSpan.FromMilliseconds(100);
            _timer.Tick    += Timer_Tick;
        }