예제 #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;
        }
예제 #2
0
 public MainWindow()
 {
     InitializeComponent();
     // Aufruf diverse APIDemo Methoden
     APIDemo.DemoACreate();
     APIDemo.DemoACreateKurz();
     APIDemo.DemoARead();
     APIDemo.DemoAUpdate();
     APIDemo.DemoARead();
     APIDemo.DemoADelete();
 }
예제 #3
0
        public MainWindow()
        {
            InitializeComponent();
            // Aufruf diverse APIDemo Methoden
            APIDemo.KontaktCreate();
            //APIDemo.DemoACreateKurz();
            APIDemo.DemoARead();
            APIDemo.DemoAUpdate();
            APIDemo.DemoARead();

            TestTXT.AppendText(Data.Kontakt.LesenID(1).Name + " " + Data.Kontakt.LesenID(1).Vorname);
        }
예제 #4
0
 public MainWindow(OverviewWindow overviewWindow)
 {
     InitializeComponent();
     // Aufruf diverse APIDemo Methoden
     APIDemo.ArtikelCreate();
     APIDemo.ArtikelCreateKurz();
     APIDemo.ArtikelRead();
     APIDemo.ArtikelUpdate();
     APIDemo.ArtikelRead();
     // APIDemo.ArtikelDelete();
     this.categoryComboBox.SelectedItem = this.categoryComboBox.Items.GetItemAt(0);
     this.buyUntilPicker.SelectedDate = DateTime.Now;
     this.submitButton.IsEnabled = !this.articleInvalid;
     this.overviewWindow = overviewWindow;
 }
예제 #5
0
        public MainWindow()
        {
            InitializeComponent();

            Main.Content = new UebersichtAufgabensammlungen();

            // Aufruf diverse APIDemo Methoden
            APIDemo.DemoBCreate();
            APIDemo.DemoACreate();
            APIDemo.DemoARead();
            APIDemo.DemoBRead();
            APIDemo.DemoAUpdate();
            APIDemo.DemoARead();
            APIDemo.DemoBRead();
            //APIDemo.DemoADelete();
            APIDemo.DemoBRead();
        }