private void MainWindowClosed(object sender, EventArgs e) //called when the window is about to close { FileAndSerializationMannagment.SerializeAndSaveToFile(true, false); //saves file when the program is about to close }
private void SaveToClipboardButtonClick(object sender, RoutedEventArgs e) { FileAndSerializationMannagment.SerializeAndSaveToFile(false, true);//saves data to clipboard }