예제 #1
0
        private void GUITimerDone(object sender, object e)
        {
            elapsed          += 1;
            radialGauge.Value = elapsed;

            SqliteHandler.UpdateData(gui);
        }
예제 #2
0
        public History()
        {
            this.InitializeComponent();
            List <Objects.WorkItem> list = SqliteHandler.GetData();

            var orderedList = list.OrderByDescending(x => DateTime.Parse(x.EndTime)).ToList();

            historyListView.ItemsSource = orderedList;
        }
예제 #3
0
        private void TimerStart()
        {
            TimeSpan goal      = new TimeSpan(0, 25, 0);
            double   timevalue = goal.TotalSeconds;

            radialGauge.Maximum = timevalue;
            elapsed             = 0;

            timer          = new DispatcherTimer();
            timer.Interval = goal;

            GUItimer          = new DispatcherTimer();
            GUItimer.Interval = new TimeSpan(0, 0, 1);
            GUItimer.Start();
            timer.Start();


            timer.Tick    += TimerDone;
            GUItimer.Tick += GUITimerDone;

            gui = SqliteHandler.AddData(workingTextbox.Text);
        }
예제 #4
0
 /// <summary>
 /// Initializes the singleton application object.  This is the first line of authored code
 /// executed, and as such is the logical equivalent of main() or WinMain().
 /// </summary>
 public App()
 {
     this.InitializeComponent();
     this.Suspending += OnSuspending;
     SqliteHandler.InitDatabase();
 }