public MainWindow() { InitializeComponent(); _source = new TimeTracker(); LoadUserSettings(); //Load the user's settings Update(); //Run the time update the first time as a primer for all of the labels SetupTimer(); //Setup the timer with its events and delegates to run each second }
/// <summary> /// Set the Date and Time format text boxes and preview labels accordingly for the Format Tab /// using the provided format /// </summary> /// <param name="format">Target formats</param> private void SetDateTimeFormat(TimeTracker.Format format) { txtDateFormat.Text = format.DateFormat; txtTimeFormat.Text = format.TimeFormat; SetFormatPreviewLabel(txtDateFormat, lblFontDatePreview); SetFormatPreviewLabel(txtTimeFormat, lblFontTimePreview); }