Documented TextEditor

This commit is contained in:
Lukasz Baldyga committed 2020-11-01 20:22:02 +00:00
1 parent ada5166a12
commit a15c683fb0
1 file changed
+8 -1
@@ -21,7 +21,7 @@ namespace Advanced_Software_Engineering {
string fileName = ""; string fileName = "";
/// <summary> /// <summary>
/// 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.
/// </summary> /// </summary>
public Text_Editor() { public Text_Editor() {
SettingsAndHelperFunctions.NumberOfWindows++; SettingsAndHelperFunctions.NumberOfWindows++;
@@ -29,6 +29,10 @@ namespace Advanced_Software_Engineering {
UpdateTitle(); UpdateTitle();
} }
/// <summary>
/// The text editor is the main window that the user will be using for writing code.
/// </summary>
/// <param name="openFile">File dialog which points to the file to open</param>
public Text_Editor(OpenFileDialog openFile) { public Text_Editor(OpenFileDialog openFile) {
SettingsAndHelperFunctions.NumberOfWindows++; SettingsAndHelperFunctions.NumberOfWindows++;
InitializeComponent(); InitializeComponent();
@@ -155,6 +159,9 @@ namespace Advanced_Software_Engineering {
} }
} }
/// <summary>
/// This function checks if the code written is OK
/// </summary>
public void CheckCode() { public void CheckCode() {
Draw_Preview tmpDrawPreview = new Draw_Preview(); Draw_Preview tmpDrawPreview = new Draw_Preview();
tmpDrawPreview.Hide(); tmpDrawPreview.Hide();