示例#1
0
        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();
        }
示例#2
0
        void createFileFunc()
        {
            // open text editing window and close the starter one
            TextEditorWindow themainWindow = new TextEditorWindow();

            themainWindow.Show();
            Close();
        }
示例#3
0
        // NEW file function
        void newFileFunc()
        {
            TextEditorWindow newFile = new TextEditorWindow();

            newFile.Show();
        }