From 1236b0393f8a07876cc597fa09e1ff51ed41ab93 Mon Sep 17 00:00:00 2001 From: Brian Lambert Date: Wed, 9 Dec 2015 23:10:55 -0500 Subject: [PATCH] Removing my name and some spelling errors. Nothing substantial. --- .../ApplicationWorkspaceColumnLightweightControl.cs | 4 ++-- .../CommandContextManager.cs | 8 ++++---- .../CommandContextMenu.cs | 2 +- .../TabLightweightControl.cs | 4 ++-- .../WorkspaceColumnLightweightControl.cs | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/managed/OpenLiveWriter.ApplicationFramework/ApplicationWorkspaceColumnLightweightControl.cs b/src/managed/OpenLiveWriter.ApplicationFramework/ApplicationWorkspaceColumnLightweightControl.cs index e1fb900d..83957734 100644 --- a/src/managed/OpenLiveWriter.ApplicationFramework/ApplicationWorkspaceColumnLightweightControl.cs +++ b/src/managed/OpenLiveWriter.ApplicationFramework/ApplicationWorkspaceColumnLightweightControl.cs @@ -618,7 +618,7 @@ namespace Project31.ApplicationFramework { get { - Debug.Assert(VirtualWidth <= MaximumColumnWidth, "The column is wider than it's maximum width. Call Brian."); + Debug.Assert(VirtualWidth <= MaximumColumnWidth, "The column is wider than its maximum width."); return Math.Max(0, MaximumColumnWidth-VirtualWidth); } } @@ -630,7 +630,7 @@ namespace Project31.ApplicationFramework { get { - Debug.Assert(VirtualWidth >= MinimumColumnWidth, "The column is narrower than it's minimum width. Call Brian."); + Debug.Assert(VirtualWidth >= MinimumColumnWidth, "The column is narrower than its minimum width."); return Math.Max(0, VirtualWidth-MinimumColumnWidth); } } diff --git a/src/managed/OpenLiveWriter.ApplicationFramework/CommandContextManager.cs b/src/managed/OpenLiveWriter.ApplicationFramework/CommandContextManager.cs index 9c6898ea..a74fa5a6 100644 --- a/src/managed/OpenLiveWriter.ApplicationFramework/CommandContextManager.cs +++ b/src/managed/OpenLiveWriter.ApplicationFramework/CommandContextManager.cs @@ -240,7 +240,7 @@ namespace OpenLiveWriter.ApplicationFramework /// public void Activate() { - Debug.Assert(!activated, "CommandContextManager already activated. Call Brian."); + Debug.Assert(!activated, "CommandContextManager already activated."); if (!activated) { commandManager.Add(activatedCommandCollection); @@ -253,7 +253,7 @@ namespace OpenLiveWriter.ApplicationFramework /// public void Deactivate() { - Debug.Assert(activated, "CommandContextManager not activated. Call Brian."); + Debug.Assert(activated, "CommandContextManager not activated."); if (activated) { commandManager.Remove(activatedCommandCollection); @@ -274,7 +274,7 @@ namespace OpenLiveWriter.ApplicationFramework /// public void Enter() { - //Debug.Assert(!entered, "CommandContextManager already entered. Call Brian."); + //Debug.Assert(!entered, "CommandContextManager already entered."); if (!entered) { commandManager.Add(enteredCommandCollection); @@ -287,7 +287,7 @@ namespace OpenLiveWriter.ApplicationFramework /// public void Leave() { - //Debug.Assert(entered, "CommandContextManager not entered. Call Brian."); + //Debug.Assert(entered, "CommandContextManager not entered."); if (entered) { commandManager.Remove(enteredCommandCollection); diff --git a/src/managed/OpenLiveWriter.ApplicationFramework/CommandContextMenu.cs b/src/managed/OpenLiveWriter.ApplicationFramework/CommandContextMenu.cs index 23ab82c3..91074f99 100644 --- a/src/managed/OpenLiveWriter.ApplicationFramework/CommandContextMenu.cs +++ b/src/managed/OpenLiveWriter.ApplicationFramework/CommandContextMenu.cs @@ -366,7 +366,7 @@ namespace OpenLiveWriter.ApplicationFramework // Return the command that the user selected. CommandOwnerDrawMenuItem commandOwnerDrawMenuItem = LocateCommandOwnerDrawMenuItem(MenuItems, menuID); - Debug.Assert(commandOwnerDrawMenuItem != null, "CommandContextMenu.ShowModal was not able to locate the CommandOwnerDrawMenuItem corresponding to the user's selection. Call Brian."); + Debug.Assert(commandOwnerDrawMenuItem != null, "CommandContextMenu.ShowModal was not able to locate the CommandOwnerDrawMenuItem corresponding to the user's selection."); return commandOwnerDrawMenuItem.Command; } diff --git a/src/managed/OpenLiveWriter.ApplicationFramework/TabLightweightControl.cs b/src/managed/OpenLiveWriter.ApplicationFramework/TabLightweightControl.cs index 12a7c63d..9005806e 100644 --- a/src/managed/OpenLiveWriter.ApplicationFramework/TabLightweightControl.cs +++ b/src/managed/OpenLiveWriter.ApplicationFramework/TabLightweightControl.cs @@ -1058,7 +1058,7 @@ namespace OpenLiveWriter.ApplicationFramework return; // Ensure that the sender is who we think it is. - Debug.Assert(sender is TabSelectorLightweightControl, "Doh!", "Bad event wiring is the leading cause of code decay. Call Brian."); + Debug.Assert(sender is TabSelectorLightweightControl, "Doh!", "Bad event wiring is the leading cause of code decay."); if (sender is TabSelectorLightweightControl) { @@ -1077,7 +1077,7 @@ namespace OpenLiveWriter.ApplicationFramework private void TabSelectorLightweightControl_Selected(object sender, EventArgs e) { // Ensure that the sender is who we think it is. - Debug.Assert(sender is TabSelectorLightweightControl, "Doh!", "Bad event wiring is the leading cause of code decay. Call Brian."); + Debug.Assert(sender is TabSelectorLightweightControl, "Doh!", "Bad event wiring is the leading cause of code decay."); if (sender is TabSelectorLightweightControl) { // Set the selected tab entry. diff --git a/src/managed/OpenLiveWriter.ApplicationFramework/WorkspaceColumnLightweightControl.cs b/src/managed/OpenLiveWriter.ApplicationFramework/WorkspaceColumnLightweightControl.cs index 3c8335d8..34862d39 100644 --- a/src/managed/OpenLiveWriter.ApplicationFramework/WorkspaceColumnLightweightControl.cs +++ b/src/managed/OpenLiveWriter.ApplicationFramework/WorkspaceColumnLightweightControl.cs @@ -863,7 +863,7 @@ namespace OpenLiveWriter.ApplicationFramework { get { - Debug.Assert(VirtualWidth <= MaximumColumnWidth, "The column is wider than it's maximum width. Call Brian."); + Debug.Assert(VirtualWidth <= MaximumColumnWidth, "The column is wider than it's maximum width."); return Math.Max(0, MaximumColumnWidth - VirtualWidth); } } @@ -875,7 +875,7 @@ namespace OpenLiveWriter.ApplicationFramework { get { - Debug.Assert(VirtualWidth >= MinimumColumnWidth, "The column is narrower than it's minimum width. Call Brian."); + Debug.Assert(VirtualWidth >= MinimumColumnWidth, "The column is narrower than it's minimum width."); return Math.Max(0, VirtualWidth - MinimumColumnWidth); } }