Exemple #1
0
        public MainWindow()
        {
            InitializeComponent();

            DispatcherTimer minuteTimer = new DispatcherTimer();

            minuteTimer.Tick    += minuteTimer_Tick;
            minuteTimer.Interval = TimeSpan.FromMinutes(1.0);
            minuteTimer.Start();

            //keyTimer exists to prevent multiple searches within [interval]
            keyTimer = new System.Timers.Timer(100)
            {
                AutoReset = false
            };
            keyTimer.Elapsed += keyTimer_Elapsed;

            ShowTime();
            search = new aSearch();
        }
Exemple #2
0
 private void OnReloadClick(object sender, RoutedEventArgs e)
 {
     search = new aSearch();
     SetPosition();
 }