//end the day involves ending the log (writting the totals and then closing the file) and then turning off logging //private void EndDayButton_Click(object sender, RoutedEventArgs e) { // if (false == _main_window.Logging) { // System.Windows.MessageBox.Show("The day has not been started!", "Error"); // avoid being able to end a day if it is not started // return; // } // _main_window.EndLog(); // MessageWindow mw = new MessageWindow("End day \n" + DateTime.Now.ToString("MM-dd-yyyy"), 3.0); // mw.Show(); // LogGoingTextBlock.Text = "Logging: No"; //} //changes the directory logs get saved to via the folder dialog //private void LogDirectoryButton_Click(object sender, RoutedEventArgs e) { // System.Windows.Forms.DialogResult result = _folder_dialog.ShowDialog(); // if(System.Windows.Forms.DialogResult.OK == result) { // _main_window.LogPath = _folder_dialog.SelectedPath.ToString(); // } // //DirectoryTextBlock.Text = _main_window.LogPath; //} //stops the program. Like all of it. Like it will shut down the program //don't click this unless you want the program to not be running any more. //I mean it //it will not be running after you click this button //you will need to restart it private void StopButton_Click(object sender, RoutedEventArgs e) { _main_window.Close(); this.Close(); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Exit_Button_Click(object sender, RoutedEventArgs e) { m_MainWindow.Close(); this.Close(); }