Exemple #1
0
 private void dispatcherTimer_Tick(object sender, EventArgs e)
 {
     if (resetuj)
     {
         Thread.Sleep(1000);
         cekajProzor.Close();
         DataContext = new MainWindowViewModel();
         resetuj     = false;
     }
 }
Exemple #2
0
 private void dispatcherTimer_Tick(object sender, EventArgs e)
 {
     threadTest.Content = DateTime.UtcNow;
     if (resetuj)
     {
         UcitavamView uc = new UcitavamView();
         uc.Show();
         Thread.Sleep(1000);
         uc.Close();
         DataContext = new SastanakViewModel();
         resetuj     = false;
     }
 }
Exemple #3
0
 private void dispatcherTimer_Tick(object sender, EventArgs e)
 {
     if (resetuj)
     {
         Thread.Sleep(1000);
         cekajProzor.Close();
         DataContext = new InventoryViewModel();
         stackPanelKlasicnaGitra.Visibility   = Visibility.Hidden;
         stackPanelElektricnaGitra.Visibility = Visibility.Hidden;
         stackPanelKlavijature.Visibility     = Visibility.Hidden;
         stackPanelPojacalo.Visibility        = Visibility.Hidden;
         slikaArtikla.Source = null;
         resetuj             = false;
     }
 }