diff --git a/Advanced Software Engineering/Advanced Software Engineering/Commander.cs b/Advanced Software Engineering/Advanced Software Engineering/Commander.cs index 818d925..faf8dc8 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Commander.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/Commander.cs @@ -40,8 +40,7 @@ namespace Advanced_Software_Engineering { /// /// Creates a new Commander instance without a context. Should only be used for testing purpouses. /// - /// empty string - public Commander(string command = "") { + public Commander() { Console.WriteLine("Warning! No graphics context!!!"); } diff --git a/Advanced Software Engineering/Advanced Software Engineering/Drawer.cs b/Advanced Software Engineering/Advanced Software Engineering/Drawer.cs index 5212e14..01eaeb3 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Drawer.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/Drawer.cs @@ -141,8 +141,9 @@ namespace Advanced_Software_Engineering { throw new Exception("Cannot have less than two points in a line"); } - GraphicsPath path = new GraphicsPath(); - path.FillMode = FillMode.Winding; + GraphicsPath path = new GraphicsPath { + FillMode = FillMode.Winding + }; path.AddLines(points); path.AddLine(points[0], points.Last()); //Add final line diff --git a/Advanced Software Engineering/Advanced Software Engineering/Windows/TextEditor.cs b/Advanced Software Engineering/Advanced Software Engineering/Windows/TextEditor.cs index e2ceb89..15b8932 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Windows/TextEditor.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/Windows/TextEditor.cs @@ -68,9 +68,10 @@ namespace Advanced_Software_Engineering { } private void saveFileAs() { - SaveFileDialog saveFileDialog = new SaveFileDialog(); - saveFileDialog.OverwritePrompt = true; - saveFileDialog.DefaultExt = ".txt"; + SaveFileDialog saveFileDialog = new SaveFileDialog { + OverwritePrompt = true, + DefaultExt = ".txt" + }; if (fileName != "") saveFileDialog.FileName = fileName; saveFileDialog.ValidateNames = true;