private void GUITimerDone(object sender, object e) { elapsed += 1; radialGauge.Value = elapsed; SqliteHandler.UpdateData(gui); }
public History() { this.InitializeComponent(); List <Objects.WorkItem> list = SqliteHandler.GetData(); var orderedList = list.OrderByDescending(x => DateTime.Parse(x.EndTime)).ToList(); historyListView.ItemsSource = orderedList; }
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); }
/// <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(); }