Example #1
0
 public SastanakView()
 {
     InitializeComponent();
     threadTest.Content       = DateTime.UtcNow;
     DataContext              = new SastanakViewModel();
     dispatcherTimer          = new System.Windows.Threading.DispatcherTimer();
     dispatcherTimer.Tick    += new EventHandler(dispatcherTimer_Tick);
     dispatcherTimer.Interval = new TimeSpan(0, 0, 5);
     dispatcherTimer.Start();
 }
Example #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;
     }
 }