Esempio n. 1
0
        private void Stop()
        {
            Core.DataCore dataCore = new Core.DataCore();
            if (dataCore.AppendNewLine(DateTime.Now, (int)Model.TimeCheckpoinStatus.Break, _userModel))
            {
                stopWatch.Reset();
                time_TextBox.Text = "00:00:00";

                stopWatch.Start();
                dispatcherTimer.Start();

                btnBreak.IsEnabled = false;
                btnStart.IsEnabled = true;

                workStatus_Label.Content = "Przerwa od: ";
            }
        }
Esempio n. 2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     Core.DataCore dataCore = new Core.DataCore();
     dataCore.AppendNewLine(DateTime.Now, (int)Model.TimeCheckpoinStatus.Break, _userModel);
 }