public void StartTimer_Click(object sender, RoutedEventArgs e) { var timeSpan = GettimeSpanFromTimer(); Parent.ChoosenTimeSpan = timeSpan; OperationsOnInternalData.SaveTimeSpanToFile(timeSpan); }
protected override void OnClosing(System.ComponentModel.CancelEventArgs e) { base.OnClosing(e); OperationsOnInternalData.SaveTimeSpanToFile(GettimeSpanFromTimer()); e.Cancel = true; this.Hide(); }