diff --git a/src/OutlookGoogleCalendarSync/Extensions/MessageBox.cs b/src/OutlookGoogleCalendarSync/Extensions/MessageBox.cs
index 0fcea1a7..f13464ff 100644
--- a/src/OutlookGoogleCalendarSync/Extensions/MessageBox.cs
+++ b/src/OutlookGoogleCalendarSync/Extensions/MessageBox.cs
@@ -12,7 +12,7 @@ public static class OgcsMessageBox {
static extern bool FlashWindowEx(ref FLASHWINFO pwfi);
[StructLayout(LayoutKind.Sequential)]
- public struct FLASHWINFO {
+ private struct FLASHWINFO {
public UInt32 cbSize;
public IntPtr hwnd;
public UInt32 dwFlags;
@@ -21,7 +21,7 @@ public struct FLASHWINFO {
}
[Flags]
- public enum FlashMode {
+ private enum flashMode {
/// Stop flashing. The system restores the window to its original state.
FLASHW_STOP = 0,
/// Flash the window caption.
@@ -45,7 +45,7 @@ public enum FlashMode {
/// The handle for the window to flash
/// Bitwise flags
///
- public static bool FlashWindow(IntPtr hWnd, FlashMode fm) {
+ private static bool flashWindow(IntPtr hWnd, flashMode fm) {
FLASHWINFO fInfo = new FLASHWINFO();
fInfo.cbSize = Convert.ToUInt32(Marshal.SizeOf(fInfo));
@@ -75,12 +75,12 @@ public static DialogResult Show(string text, string caption, MessageBoxButtons b
if (mainFrm.InvokeRequired) {
mainFrm.Invoke(new System.Action(() => {
mainFrm.MainFormShow();
- FlashWindow(mainFrm.Handle, FlashMode.FLASHW_ALL | FlashMode.FLASHW_TIMERNOFG);
+ flashWindow(mainFrm.Handle, flashMode.FLASHW_ALL | flashMode.FLASHW_TIMERNOFG);
dr = MessageBox.Show(mainFrm, text, caption, buttons, icon);
}));
} else {
mainFrm.MainFormShow();
- FlashWindow(mainFrm.Handle, FlashMode.FLASHW_ALL | FlashMode.FLASHW_TIMERNOFG);
+ flashWindow(mainFrm.Handle, flashMode.FLASHW_ALL | flashMode.FLASHW_TIMERNOFG);
dr = MessageBox.Show(mainFrm, text, caption, buttons, icon);
}
log.Debug("Response: " + dr.ToString());
@@ -105,12 +105,12 @@ public static DialogResult Show(string text, string caption, MessageBoxButtons b
if (mainFrm.InvokeRequired) {
mainFrm.Invoke(new System.Action(() => {
mainFrm.MainFormShow();
- FlashWindow(mainFrm.Handle, FlashMode.FLASHW_ALL | FlashMode.FLASHW_TIMERNOFG);
+ flashWindow(mainFrm.Handle, flashMode.FLASHW_ALL | flashMode.FLASHW_TIMERNOFG);
dr = MessageBox.Show(mainFrm, text, caption, buttons, icon, defaultButton);
}));
} else {
mainFrm.MainFormShow();
- FlashWindow(mainFrm.Handle, FlashMode.FLASHW_ALL | FlashMode.FLASHW_TIMERNOFG);
+ flashWindow(mainFrm.Handle, flashMode.FLASHW_ALL | flashMode.FLASHW_TIMERNOFG);
dr = MessageBox.Show(mainFrm, text, caption, buttons, icon, defaultButton);
}
log.Debug("Response: " + dr.ToString());
diff --git a/src/OutlookGoogleCalendarSync/Forms/UpdateInfo.cs b/src/OutlookGoogleCalendarSync/Forms/UpdateInfo.cs
index a581b71d..c2976457 100644
--- a/src/OutlookGoogleCalendarSync/Forms/UpdateInfo.cs
+++ b/src/OutlookGoogleCalendarSync/Forms/UpdateInfo.cs
@@ -32,7 +32,7 @@ public UpdateInfo(String releaseVersion, String releaseType, String html, out Di
lTitle.Text = "A new " + (releaseType == "alpha" ? "alpha " : "") + "release of OGCS is available";
lSummary.Text = "Would you like to upgrade to v" + releaseVersion + " now?";
- if (html == null) {
+ if (string.IsNullOrEmpty(html)) {
String githubReleaseNotes = Program.OgcsWebsite + "/release-notes";
anchorRequested = "v" + releaseVersion.Replace(".", "") + "---" + releaseType;
log.Debug("Browser anchor: " + anchorRequested);
diff --git a/src/OutlookGoogleCalendarSync/OutlookOgcs/OutlookNew.cs b/src/OutlookGoogleCalendarSync/OutlookOgcs/OutlookNew.cs
index fc27cc29..f5cb9f77 100644
--- a/src/OutlookGoogleCalendarSync/OutlookOgcs/OutlookNew.cs
+++ b/src/OutlookGoogleCalendarSync/OutlookOgcs/OutlookNew.cs
@@ -540,6 +540,7 @@ public List