Пример #1
0
        public void StartTimer_Click(object sender, RoutedEventArgs e)
        {
            var timeSpan = GettimeSpanFromTimer();

            Parent.ChoosenTimeSpan = timeSpan;
            OperationsOnInternalData.SaveTimeSpanToFile(timeSpan);
        }
Пример #2
0
        protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
        {
            base.OnClosing(e);

            OperationsOnInternalData.SaveTimeSpanToFile(GettimeSpanFromTimer());
            e.Cancel = true;
            this.Hide();
        }