@@ -40,8 +40,8 @@ public static void Initialize(NotifyIcon notifyIcon)
4040 _notifyIcon = notifyIcon ;
4141 _notifyIcon . ContextMenu . MenuItems . Add ( 8 , new MenuItem ( "&Check for Updates Now" ,
4242 OnUpdateItemClick ) ) ;
43- _notifyIcon . ContextMenu . MenuItems . Add ( 9 , new MenuItem ( "C&heck Automatically Once a Week" ,
44- OnAutoUpdateItemClick ) ) ;
43+ _notifyIcon . ContextMenu . MenuItems . Add ( 9 , new MenuItem (
44+ "C&heck Automatically Once a Week" , OnAutoUpdateItemClick ) ) ;
4545 _notifyIcon . ContextMenu . MenuItems [ 9 ] . Checked = ! JsonConfig . settings . disableAutoUpdate ;
4646 _notifyIcon . ContextMenu . MenuItems . Add ( 10 , new MenuItem ( "-" ) ) ;
4747
@@ -84,16 +84,16 @@ public static void CheckManual()
8484
8585 if ( latestVersion == null )
8686 {
87- MessageBox . Show ( "WinDynamicDesktop could not connect to the Internet to check for updates." ,
88- "Error" , MessageBoxButtons . OK , MessageBoxIcon . Warning ) ;
87+ MessageBox . Show ( "WinDynamicDesktop could not connect to the Internet to check " +
88+ "for updates." , " Error", MessageBoxButtons . OK , MessageBoxIcon . Warning ) ;
8989 }
9090 else if ( IsUpdateAvailable ( currentVersion , latestVersion ) )
9191 {
92- DialogResult result = MessageBox . Show ( "There is a newer version of WinDynamicDesktop " +
93- "available. Would you like to visit the download page?" + Environment . NewLine +
94- Environment . NewLine + "Current Version: " + currentVersion + Environment . NewLine +
95- "Latest Version: " + latestVersion , "Update Available" , MessageBoxButtons . YesNo ,
96- MessageBoxIcon . Question ) ;
92+ DialogResult result = MessageBox . Show ( "There is a newer version of " +
93+ "WinDynamicDesktop available. Would you like to visit the download page?" +
94+ Environment . NewLine + Environment . NewLine + "Current Version: " +
95+ currentVersion + Environment . NewLine + "Latest Version: " + latestVersion ,
96+ "Update Available" , MessageBoxButtons . YesNo , MessageBoxIcon . Question ) ;
9797
9898 if ( result == DialogResult . Yes )
9999 {
@@ -102,8 +102,8 @@ public static void CheckManual()
102102 }
103103 else
104104 {
105- MessageBox . Show ( "You already have the latest version of WinDynamicDesktop installed." ,
106- "Up To Date" , MessageBoxButtons . OK , MessageBoxIcon . Information ) ;
105+ MessageBox . Show ( "You already have the latest version of WinDynamicDesktop " +
106+ "installed." , " Up To Date", MessageBoxButtons . OK , MessageBoxIcon . Information ) ;
107107 }
108108 }
109109
@@ -119,8 +119,8 @@ private static void CheckAuto()
119119 else if ( IsUpdateAvailable ( currentVersion , latestVersion ) )
120120 {
121121 _notifyIcon . BalloonTipTitle = "Update Available" ;
122- _notifyIcon . BalloonTipText = "WinDynamicDesktop " + latestVersion + " is available. " +
123- "Click here to download it." ;
122+ _notifyIcon . BalloonTipText = "WinDynamicDesktop " + latestVersion +
123+ " is available. Click here to download it." ;
124124 _notifyIcon . ShowBalloonTip ( 10000 ) ;
125125 }
126126
0 commit comments