From a15c683fb09ad6e5c1e1c6f04efca441d2444209 Mon Sep 17 00:00:00 2001 From: Lukasz Baldyga Date: Sun, 1 Nov 2020 20:22:02 +0000 Subject: [PATCH] Documented TextEditor --- .../Advanced Software Engineering/Windows/TextEditor.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Advanced Software Engineering/Advanced Software Engineering/Windows/TextEditor.cs b/Advanced Software Engineering/Advanced Software Engineering/Windows/TextEditor.cs index 6eb1901..7996508 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Windows/TextEditor.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/Windows/TextEditor.cs @@ -21,7 +21,7 @@ namespace Advanced_Software_Engineering { string fileName = ""; /// - /// The text editor is the main window that the user will be using for writing code. + /// The text editor is the main window that the user will be using for writing code. /// public Text_Editor() { SettingsAndHelperFunctions.NumberOfWindows++; @@ -29,6 +29,10 @@ namespace Advanced_Software_Engineering { UpdateTitle(); } + /// + /// The text editor is the main window that the user will be using for writing code. + /// + /// File dialog which points to the file to open public Text_Editor(OpenFileDialog openFile) { SettingsAndHelperFunctions.NumberOfWindows++; InitializeComponent(); @@ -155,6 +159,9 @@ namespace Advanced_Software_Engineering { } } + /// + /// This function checks if the code written is OK + /// public void CheckCode() { Draw_Preview tmpDrawPreview = new Draw_Preview(); tmpDrawPreview.Hide();