private void saveButton_Click(object sender, RoutedEventArgs e) { // open a new text editor window to be able to edit or open parallel files TextEditorWindow mainWindow = new TextEditorWindow(); saveFileFunc(); }
void createFileFunc() { // open text editing window and close the starter one TextEditorWindow themainWindow = new TextEditorWindow(); themainWindow.Show(); Close(); }
// NEW file function void newFileFunc() { TextEditorWindow newFile = new TextEditorWindow(); newFile.Show(); }