From cc1c44a6b303c91239eb050ef694dbd9e543ec58 Mon Sep 17 00:00:00 2001 From: Lukasz Baldyga Date: Sun, 1 Nov 2020 19:49:05 +0000 Subject: [PATCH] Documented DetailsWindow --- .../Windows/DetailsWindow.cs | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) 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; } }