diff --git a/Advanced Software Engineering/Advanced Software Engineering/Windows/DetailsWindow.cs b/Advanced Software Engineering/Advanced Software Engineering/Windows/DetailsWindow.cs
index a138fa8..7f360f3 100644
--- a/Advanced Software Engineering/Advanced Software Engineering/Windows/DetailsWindow.cs
+++ b/Advanced Software Engineering/Advanced Software Engineering/Windows/DetailsWindow.cs
@@ -1,27 +1,27 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
+using System.Windows.Forms;
namespace Advanced_Software_Engineering {
+ ///
+ /// This form is reponsible for showing details. It is essentially a textbox in a form.
+ ///
public partial class DetailsWindow : Form {
- public DetailsWindow() {
+ ///
+ /// A details window dedicated to showing details.
+ ///
+ /// The textbox text
+ public DetailsWindow(string details) {
InitializeComponent();
+ textBox1.Text = details;
}
- public DetailsWindow(string errorText) {
+ ///
+ /// A details window that shows details in the textbox and title as the window title.
+ ///
+ /// the details to be shown in the textbox
+ /// the title of the window
+ public DetailsWindow(string details, string title) {
InitializeComponent();
- textBox1.Text = errorText;
- }
-
- public DetailsWindow(string errorText, string title) {
- InitializeComponent();
- textBox1.Text = errorText;
+ textBox1.Text = details;
Text = title;
}
}