diff --git a/ClockLabel.cs b/ClockLabel.cs index 5e82f20..99d31dd 100644 --- a/ClockLabel.cs +++ b/ClockLabel.cs @@ -6,7 +6,6 @@ using Timer = System.Windows.Forms.Timer; /* * ClockLabel is a special label that will display the system time. */ - class ClockLabel : Label { /** diff --git a/Program.cs b/Program.cs index 1449ef9..adbe4e0 100644 --- a/Program.cs +++ b/Program.cs @@ -20,7 +20,7 @@ namespace App if (args.Length > 0) { - string arg = args[0].ToLower().Trim(); + string arg = args[0].ToLower().Trim(); // Settings if (arg.StartsWith("/c")) { @@ -33,7 +33,6 @@ namespace App // Screensaver else if (arg.StartsWith("/s")) { saver.Run(); - } else { MessageBox.Show("Sorry, but the command line argument \"" + arg + "\" is not valid.", "Colorclock", diff --git a/ScreenSaver.cs b/ScreenSaver.cs index 8aff70e..3917981 100644 --- a/ScreenSaver.cs +++ b/ScreenSaver.cs @@ -34,7 +34,7 @@ class ScreenSaver private void OnTick(object? myObject, EventArgs? myEventArgs) { - Update(); + Update(); } private static void Update() @@ -46,4 +46,4 @@ class ScreenSaver form.BackColor = color; } } -} \ No newline at end of file +} diff --git a/Window.cs b/Window.cs index 65fcc01..6337141 100644 --- a/Window.cs +++ b/Window.cs @@ -11,11 +11,11 @@ namespace App public Window() { - InitializeComponent(new Rectangle(0, 0, 200, 200)); + InitializeComponent(new Rectangle(0, 0, 200, 200)); } - public Window(Rectangle bounds) + public Window(Rectangle bounds) { InitializeComponent(bounds); @@ -23,15 +23,15 @@ namespace App public Window(Screen scr) { - InitializeComponent(scr.Bounds); + InitializeComponent(scr.Bounds); } private void InitializeComponent(Rectangle bounds) { - Bounds = bounds; + Bounds = bounds; - // Set some good values for a Sreensaver window. - BackColor = Color.White; + // Set some good values for a Sreensaver window. + BackColor = Color.White; FormBorderStyle = FormBorderStyle.None; StartPosition = FormStartPosition.Manual; Cursor.Hide();