Merge pull request #51 from KirillOsenkov/master

Remove trailing whitespace and consecutive empty lines.
This commit is contained in:
Will Duff 2015-12-09 16:45:57 -08:00
commit 2e58e16808
1148 changed files with 7327 additions and 10845 deletions

View File

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using System;
@ -82,7 +82,6 @@ namespace BlogRunner
XmlDocument providers = new XmlDocument();
providers.Load(providersPath);
foreach (XmlElement provider in providers.SelectNodes("/providers/provider"))
{
string providerId = provider.SelectSingleNode("id/text()").Value;

View File

@ -1,4 +1,4 @@
namespace BlogRunnerGui
namespace BlogRunnerGui
{
partial class FileInput
{

View File

@ -1,4 +1,4 @@
namespace BlogRunnerGui
namespace BlogRunnerGui
{
partial class Form1
{

View File

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using System;
@ -192,7 +192,6 @@ namespace BlogRunnerGui
const string SETTING_OUTPUT = "output";
const string SETTING_PROVIDER = "provider";
class BlogProviderItem
{
public readonly string Id;

View File

@ -17,7 +17,6 @@ namespace OpenLiveWriter.Test
private readonly ContentEditorFactory factory;
private readonly IContentEditor editor;
public CanvasForm()
{
InitializeComponent();
@ -249,8 +248,6 @@ namespace OpenLiveWriter.Test
}
[DllImport("KERNEL32.DLL", CharSet=CharSet.Auto, EntryPoint="LoadLibrary")]
public static extern IntPtr LoadLibrary(String lpFileName);
}

View File

@ -1,4 +1,4 @@
namespace OpenLiveWriter.Test
namespace OpenLiveWriter.Test
{
partial class CanvasForm
{

View File

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using System;

View File

@ -122,7 +122,6 @@ namespace LocUtil
return 1;
}
if (!ParseCommandXml(transformedCommandFiles, pairsLoc, pairsNonLoc, typeof(Command), "/Commands/Command", "Command.{0}.{1}", out commandIds))
return 1;
HashSet dialogIds;
@ -258,7 +257,6 @@ namespace LocUtil
// HACK: hard-code wizard height
pairs.Add("ConfigurationWizard.Height", new Values("380", "The height of the configuration wizard, in pixels."));
}
pairs.Add("Culture.UseItalics", new Values("True", "Whether or not the language uses italics"));
@ -501,7 +499,6 @@ namespace LocUtil
propTable.Add(prop.Name, prop);
}
ids = new HashSet();
foreach (string relativeInputFile in inputFiles)
@ -531,7 +528,6 @@ namespace LocUtil
string name = attr.Name;
if (name == "DebugOnly" || name == "Identifier")
continue;

View File

@ -184,4 +184,3 @@ namespace OpenLiveWriter.Api
}
}

View File

@ -98,7 +98,6 @@ namespace OpenLiveWriter.Api
private HtmlScreenCaptureCore _htmlScreenCapture;
}
/// <summary>
/// Provides data for the HtmlScreenCaptureAvailable event.
/// </summary>
@ -184,5 +183,4 @@ namespace OpenLiveWriter.Api
/// </summary>
public delegate void HtmlDocumentAvailableHandler(object sender, HtmlDocumentAvailableEventArgs e);
}

View File

@ -83,7 +83,5 @@ namespace OpenLiveWriter.Api
IPostInfo PostInfo { get; }
}
}

View File

@ -38,7 +38,6 @@ namespace OpenLiveWriter.Api
}
}
/// <summary>
/// SmartContent object alignment.
/// </summary>
@ -195,6 +194,5 @@ namespace OpenLiveWriter.Api
string[] Filenames { get; }
}
}

View File

@ -32,7 +32,6 @@ namespace OpenLiveWriter.Api
void UpdateStatusBar(Image image, string statusText);
}
/// <summary>
/// Event handler that is fired when a content is resized.
/// </summary>

View File

@ -3,7 +3,6 @@
using System;
namespace OpenLiveWriter.Api
{
/// <summary>

View File

@ -12,7 +12,6 @@ using System.Runtime.InteropServices;
using OpenLiveWriter.Interop.Windows;
using OpenLiveWriter.CoreServices;
namespace OpenLiveWriter.Api
{
/// <summary>
@ -46,7 +45,6 @@ namespace OpenLiveWriter.Api
Reload
}
/// <summary>
/// Provides the ability to execute Http requests that utilize the (optional) Web Proxy
/// settings specified by the user in the Web Proxy Preferences panel. Also enables

View File

@ -46,7 +46,6 @@ namespace OpenLiveWriter.Api
}
private ISmartContent _selectedContent;
/// <summary>
/// Notification that the currently selected SmartContent object
/// has changed. The editor should adapt its state to the current
@ -81,7 +80,6 @@ namespace OpenLiveWriter.Api
ContentEdited(this, EventArgs.Empty);
}
private void InitializeComponent()
{
//

View File

@ -66,7 +66,6 @@ namespace OpenLiveWriter.Api
throw new NotImplementedException("SmartContentSource.CreateContentFromUrl");
}
/// <summary>
/// Generate the HTML content which is used to represent the SmartContent item within
/// the post editor. The default behavior for this method if it is not overridden is to

View File

@ -79,7 +79,6 @@ namespace OpenLiveWriter.Api
{
TResult result = default(TResult);
if (Application.MessageLoop)
{
Exception e = null;

View File

@ -95,7 +95,6 @@ namespace OpenLiveWriter.Api
}
private string _progressMessage = String.Empty;
private bool ValidateRegex(string pattern)
{
try

View File

@ -63,7 +63,6 @@ namespace OpenLiveWriter.Api
_application.ShowOptions(optionsPage);
}
[ComImport]
[Guid("366FF6CE-CA04-433D-8522-741094458839")]
private class OpenLiveWriterApplicationClass { } // implements IOpenLiveWriterApplication

View File

@ -38,7 +38,6 @@ namespace OpenLiveWriter.Api
ImagePath = imagePath;
}
/// <summary>
/// Unique ID for the plugin (should be a GUID without leading and trailing braces)
/// </summary>
@ -160,7 +159,6 @@ namespace OpenLiveWriter.Api
}
private bool _hasEditableOptions = false;
private bool ValidateGuid(string id)
{
try

View File

@ -111,7 +111,6 @@ namespace OpenLiveWriter.ApplicationFramework
SizeChanged -= new EventHandler(ApplicationForm_SizeChanged);
}
/// <summary>
/// Disposed a menu and all of its submenu items.
/// </summary>
@ -252,7 +251,6 @@ namespace OpenLiveWriter.ApplicationFramework
private IntPtr _hMainMenuBitmap = IntPtr.Zero;
private IntPtr _hMainMenuBrushBitmap = IntPtr.Zero;
void IMainMenuBackgroundPainter.PaintBackground(Graphics g, Rectangle menuItemBounds)
{
if (ColorizedResources.Instance.CustomMainMenuPainting)
@ -276,7 +274,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
try
{
GraphicsState graphicsState = g.Save();

View File

@ -471,7 +471,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// The primary workspace command bar text color.
/// </summary>

View File

@ -43,7 +43,6 @@ namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
}
/// Get the ApplicationStylePreferences instance for the current thread
/// </summary>
private static ApplicationStylePreferences ApplicationStylePreferences

View File

@ -831,4 +831,3 @@ namespace Project31.ApplicationFramework
}
}

View File

@ -104,6 +104,5 @@ namespace Project31.ApplicationFramework
base.OnPaint(e);
}
}
}

View File

@ -317,7 +317,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
#endregion Public Properties
#region Protected Methods

View File

@ -41,7 +41,7 @@ namespace OpenLiveWriter.ApplicationFramework
//
this.Name = "ColorDialogLauncherControl";
this.Size = new System.Drawing.Size(108, 24);
this.Text = "&More Colors…";
this.Text = "&More Colors…";
}
#endregion

View File

@ -274,7 +274,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
public abstract class IColorPickerSubControl : System.Windows.Forms.UserControl
{
/// <summary>

View File

@ -129,7 +129,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
const int PADDING = 6;
const int GUTTER_SIZE = 3;
const int COLOR_SIZE = 14;

View File

@ -97,7 +97,6 @@ namespace OpenLiveWriter.ApplicationFramework
/// </summary>
private bool visibleOnMainMenu = true;
/// <summary>
/// A value indicating whether the command should be visible on a command bar
/// </summary>
@ -298,7 +297,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
private static readonly object CommandBarButtonContextMenuDefinitionKey = new object();
/// <summary>
/// Occurs when the CommandBarButtonContextMenuDefinition should be shown.
@ -367,7 +365,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// The VisibleOnCommandBarChanged event key.
/// </summary>
@ -743,7 +740,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// Gets or sets a value indicating whether the command should be visible on a command bar
/// </summary>
@ -769,7 +765,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// Gets or sets A value indicating whether the Shortcut of the command should be shown when the
/// command appears on a menu.
@ -1186,7 +1181,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// Gets or sets the command bar button mini form factory
/// </summary>
@ -1255,8 +1249,6 @@ namespace OpenLiveWriter.ApplicationFramework
private bool commandBarButtonContextMenuInvalidateParent = false;
/// <summary>
/// Gets or sets the command text.
/// </summary>
@ -1846,7 +1838,6 @@ namespace OpenLiveWriter.ApplicationFramework
RaiseEvent(VisibleOnMainMenuChangedEventKey, e);
}
/// <summary>
/// Raises the VisibleOnCommandBarChanged event.
/// </summary>

View File

@ -14,7 +14,6 @@ using OpenLiveWriter.Controls;
using OpenLiveWriter.CoreServices;
using OpenLiveWriter.Localization.Bidi;
namespace OpenLiveWriter.ApplicationFramework
{
/// <summary>
@ -400,7 +399,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
private int SnapButtonHeight(int height)
{
// large buttons always occupy 42 pixels
@ -1159,7 +1157,6 @@ namespace OpenLiveWriter.ApplicationFramework
EndShowContextMenu();
}
/// <summary>
/// Initialize state/UI for context menu
/// </summary>
@ -1201,7 +1198,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
private static ColorMatrix _highContrastColorMatrix;
#endregion Private Methods
#region Private Event Handlers
@ -1266,7 +1262,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
public override bool DoDefaultAction()
{
if (ContextMenuUserInterface || DropDownContextMenuUserInterface)

View File

@ -143,7 +143,6 @@ namespace OpenLiveWriter.ApplicationFramework
private int _offSetSpacing = 0;
#endregion Public Properties
#region Public Methods
@ -224,7 +223,6 @@ namespace OpenLiveWriter.ApplicationFramework
previous = Previous.Separator;
}
if (lightweightControl is CommandBarButtonLightweightControl)
{
//if (((CommandBarButtonLightweightControl)lightweightControl).DropDownContextMenuUserInterface)

View File

@ -62,7 +62,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// Clean up any resources being used.
/// </summary>

View File

@ -410,7 +410,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
protected bool UseHighContrastMode
{
get { return SystemInformation.HighContrast; }

View File

@ -107,7 +107,6 @@ namespace OpenLiveWriter.ApplicationFramework
// Call the base class's method so that registered delegates receive the event.
base.OnPaint(e);
// Paint the left line.
using (SolidBrush solidBrush = new SolidBrush(Color.FromArgb(64, 0, 0, 0)))
e.Graphics.FillRectangle(solidBrush, VirtualClientRectangle.X, VirtualClientRectangle.Y + 1, VirtualClientRectangle.Width / 2, VirtualClientRectangle.Height);

View File

@ -248,7 +248,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// Clears the "Activated" state of the CommandContextManager.
/// </summary>
@ -270,7 +269,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// Set the "Entered" state of the CommandContextManager.
/// </summary>

View File

@ -78,7 +78,6 @@ namespace OpenLiveWriter.ApplicationFramework
return command;
}
/// <summary>
/// Shows a CommandContextMenu modally.
/// </summary>
@ -310,7 +309,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
/// <summary>
/// Displays the CommandContextMenu at the specified location and returns the command that
/// was selected by the user.

View File

@ -48,7 +48,6 @@ namespace OpenLiveWriter.ApplicationFramework
#endregion Public Events
#region Class Initialization & Termination
/// <summary>

View File

@ -104,7 +104,6 @@ namespace OpenLiveWriter.ApplicationFramework
Controls.Add(_actionButton);
}
/// <summary>
/// Override out Activated event to allow parent form to retains its 'activated'
/// look (caption bar color, etc.) even when we are active
@ -121,7 +120,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
/// <summary>
/// Automatically close when the form is deactivated
/// </summary>
@ -158,7 +156,6 @@ namespace OpenLiveWriter.ApplicationFramework
Cancel();
}
// handle painting
protected override void OnPaint(PaintEventArgs e)
{
@ -197,7 +194,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
/// <summary>
/// Prevent background painting (supports double-buffering)
/// </summary>
@ -208,8 +204,6 @@ namespace OpenLiveWriter.ApplicationFramework
/*
protected override bool ProcessKeyPreview(ref Message m)
{
@ -234,7 +228,6 @@ namespace OpenLiveWriter.ApplicationFramework
Execute();
}
/// <summary>
/// Cancel the mini-form
/// </summary>
@ -243,7 +236,6 @@ namespace OpenLiveWriter.ApplicationFramework
Close();
}
/// <summary>
/// Execute the command
/// </summary>
@ -259,7 +251,6 @@ namespace OpenLiveWriter.ApplicationFramework
_contextMenuControlHandler.Execute(userInput);
}
/// <summary>
/// Handle to parent frame window
/// </summary>
@ -275,7 +266,6 @@ namespace OpenLiveWriter.ApplicationFramework
/// </summary>
private ICommandContextMenuControlHandler _contextMenuControlHandler;
/// <summary>
/// Button user clicks to take action
/// </summary>
@ -293,6 +283,5 @@ namespace OpenLiveWriter.ApplicationFramework
private const int BUTTON_VERTICAL_PAD = 3;
private static readonly Color BACKGROUND_COLOR = Color.FromArgb(244, 243, 238);
}
}

View File

@ -596,7 +596,6 @@ namespace OpenLiveWriter.ApplicationFramework
if (command != null)
return command;
Shortcut shortcut = KeyboardHelper.MapToShortcut(commandShortcut);
if (shortcut != Shortcut.None && !ShouldIgnore(shortcut))
return (Command)commandShortcutTable[shortcut];

View File

@ -223,6 +223,5 @@ namespace OpenLiveWriter.ApplicationFramework
Visible = command.VisibleOnMainMenu;
}
}
}

View File

@ -50,7 +50,6 @@ namespace OpenLiveWriter.ApplicationFramework
return ResourceHelper.LoadBitmap(commandId + "_" + bitmapType);
}
/// <summary>
/// Parses the structure of the main menu into a hashtable whose keys are
/// command identifier strings and values are localized MainMenuPath strings.

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -39,7 +39,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -55,7 +55,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
base.Dispose( disposing );
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -55,7 +55,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
base.Dispose( disposing );
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -37,7 +37,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -28,7 +28,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -39,7 +39,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -30,7 +30,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -30,7 +30,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -30,7 +30,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -40,7 +40,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -39,7 +39,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -36,7 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -16,7 +16,6 @@ namespace OpenLiveWriter.ApplicationFramework
_parentControl = parentControl;
}
public bool HasFocus
{
get
@ -192,14 +191,12 @@ namespace OpenLiveWriter.ApplicationFramework
AggressiveCommandStateChanged(this, EventArgs.Empty);
}
private TextBoxBase FindFocusedTextBox()
{
Control focusedControl = ControlHelper.FindFocused(_parentControl);
return focusedControl as TextBoxBase;
}
private Control _parentControl;
}
}

View File

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using System;

View File

@ -50,7 +50,6 @@ namespace OpenLiveWriter.ApplicationFramework
base.Dispose( disposing );
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -50,7 +50,6 @@ namespace OpenLiveWriter.ApplicationFramework
base.Dispose( disposing );
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify

View File

@ -23,7 +23,6 @@ namespace OpenLiveWriter.ApplicationFramework
InitializeCommands();
}
/// <summary>
/// Get the underlying command identifiers managed by this dynamic command menu
/// (this would allow us to embed these commands within the scope of a context-menu definition)
@ -42,7 +41,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
// <summary>
/// Clean up any resources being used.
/// </summary>
@ -58,7 +56,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
private void InitializeCommands()
{
Context.CommandManager.BeginUpdate();
@ -110,7 +107,6 @@ namespace OpenLiveWriter.ApplicationFramework
Context.CommandManager.EndUpdate();
}
/// <summary>
/// BeforeShowInMenu to dynamically update the contents of the window menu
/// </summary>
@ -166,14 +162,12 @@ namespace OpenLiveWriter.ApplicationFramework
}
private void command_Execute(object sender, EventArgs ea)
{
// notify context
Context.CommandExecuted((sender as Command).Tag as IMenuCommandObject);
}
private void commandMore_Execute(object sender, EventArgs ea)
{
using (DynamicCommandMenuOverflowForm form = new DynamicCommandMenuOverflowForm(Context.GetMenuCommandObjects()))
@ -191,14 +185,12 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
private IDynamicCommandMenuContext Context
{
get { return _context; }
}
private IDynamicCommandMenuContext _context;
private ArrayList _commands = new ArrayList();
private Command commandMore;
@ -208,8 +200,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
public interface IDynamicCommandMenuContext
{
/// <summary>
@ -235,7 +225,6 @@ namespace OpenLiveWriter.ApplicationFramework
void CommandExecuted(IMenuCommandObject menuCommandObject);
}
public interface IMenuCommandObject
{
Bitmap Image { get; }
@ -245,7 +234,6 @@ namespace OpenLiveWriter.ApplicationFramework
string CaptionNoMnemonic { get; }
}
public class DynamicCommandMenuOptions
{
public DynamicCommandMenuOptions(string mainMenuBasePath, int menuMergeOffset)
@ -253,7 +241,6 @@ namespace OpenLiveWriter.ApplicationFramework
{
}
public DynamicCommandMenuOptions(
string mainMenuBasePath, int menuMergeOffset,
string moreCommandsMenuCaption, string moreCommandsDialogTitle)
@ -281,7 +268,6 @@ namespace OpenLiveWriter.ApplicationFramework
/// </summary>
public readonly int MenuMergeOffset;
/// <summary>
/// Menu caption to be used if more commands are available than are displayable on the menu
/// (you can display up to 9 on the menu). If null then no 'More' option is provided.
@ -293,7 +279,6 @@ namespace OpenLiveWriter.ApplicationFramework
/// </summary>
public readonly string MoreCommandsDialogTitle;
/// <summary>
/// Maximum number of commands to show on the menu (must be from 1 to 9)
/// </summary>
@ -313,7 +298,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
private int _maxCommandsShownOnMenu;
/// <summary>
/// Should we add numeric Mnemonics to the commands
/// </summary>
@ -326,7 +310,5 @@ namespace OpenLiveWriter.ApplicationFramework
}
}

View File

@ -41,7 +41,6 @@ namespace OpenLiveWriter.ApplicationFramework
listBoxCommands.SelectedIndex = 0;
}
public IMenuCommandObject SelectedObject
{
get
@ -58,7 +57,6 @@ namespace OpenLiveWriter.ApplicationFramework
DialogResult = DialogResult.OK;
}
private class MenuCommandObjectListBoxAdapter
{
public MenuCommandObjectListBoxAdapter(IMenuCommandObject menuCommandObject)
@ -151,6 +149,5 @@ namespace OpenLiveWriter.ApplicationFramework
}
#endregion
}
}

View File

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using System;

View File

@ -235,7 +235,6 @@ namespace OpenLiveWriter.ApplicationFramework
Layout(this, ea);
}
public void OnKeyboardLanguageChanged()
{
}
@ -244,5 +243,3 @@ namespace OpenLiveWriter.ApplicationFramework

View File

@ -66,7 +66,6 @@ namespace OpenLiveWriter.ApplicationFramework
VirtualTransparency.VirtualPaint(this, e);
}
public bool Faded
{
get { return _faded; }

View File

@ -97,8 +97,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
protected override void OnPaint(PaintEventArgs e)
{
@ -131,7 +129,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/*
if (!selected && !SystemInformation.HighContrast)
{

View File

@ -180,7 +180,6 @@ namespace OpenLiveWriter.ApplicationFramework
Invalidate();
if (selectedIndex >= 0 && SelectedTabChanged != null)
SelectedTabChanged(this, new SelectedTabChangedEventArgs(selectedIndex));
}
@ -219,7 +218,6 @@ namespace OpenLiveWriter.ApplicationFramework
GraphicsHelper.TileFillScaledImageHorizontally(g, ColorizedResources.Instance.DropShadowBitmap, new Rectangle(0, 0, ShadowWidth, ColorizedResources.Instance.DropShadowBitmap.Height));
}
base.OnPaint(e);
}

View File

@ -708,7 +708,6 @@ namespace OpenLiveWriter.ApplicationFramework
return KeyboardHelper.FormatShortcutString(shortcut);
}
}
internal interface IMainMenuBackgroundPainter

View File

@ -19,7 +19,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
#region Static & Constant Declarations
#endregion Static & Constant Declarations
#region Private Member Variables
@ -201,7 +200,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
#region Private Methods
/// <summary>
/// Configure change monitoring for this prefs object
/// </summary>
@ -242,7 +240,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
}
}
/// <summary>
/// Monitor changes in the registry key for this prefs object
/// </summary>

View File

@ -35,7 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
/// </summary>
private ArrayList preferencesPanelList = new ArrayList();
/// <summary>
/// A value which indicates whether the form is initialized.
/// </summary>
@ -56,7 +55,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
#region Class Initialization & Termination
public PreferencesForm()
{
//
@ -226,7 +224,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
}
}
public IWin32Window Win32Owner
{
get
@ -247,7 +244,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
#region Public Methods
public void HideApplyButton()
{
buttonApply.Visible = false;
@ -561,7 +557,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
SavePreferences();
}
#endregion Event Handlers
}
}

View File

@ -81,7 +81,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
}
}
public override void Save()
{
ApplyProxyPortToPreferences();
@ -99,13 +98,11 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
_webProxyPreferences.Save();
}
private void _connectionsPreferences_PreferencesModified(object sender, EventArgs e)
{
OnModified(EventArgs.Empty);
}
private void proxyEnabled_CheckedChanged(object sender, EventArgs e)
{
panelProxySettings.Enabled = proxyEnabled.Checked;
@ -154,7 +151,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
_webProxyPreferences.Password = proxyPassword.Text;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
@ -329,6 +325,5 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
#endregion
}
}

View File

@ -42,7 +42,6 @@ namespace OpenLiveWriter.ApplicationFramework
launcher.OpenForm();
}
public SatelliteApplicationForm()
{
// allow windows to determine the location for new windows
@ -142,10 +141,8 @@ namespace OpenLiveWriter.ApplicationFramework
//_commandBarControl.Dock = DockStyle.Top;
PositionMainControl();
//Controls.Add(_commandBarControl);
Controls.Add(_mainControl);
}
@ -163,7 +160,6 @@ namespace OpenLiveWriter.ApplicationFramework
BOTTOM_PADDING = ScaleY(0);//25) ;
}
DockPadding.Top = TOP_PADDING;
DockPadding.Left = SIDE_PADDING;
DockPadding.Right = SIDE_PADDING;
@ -267,7 +263,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
// overrideable methods used to customize the UI of the satellite form
//protected virtual CommandBarDefinition FirstCommandBarDefinition { get { return null; } }
@ -281,7 +276,6 @@ namespace OpenLiveWriter.ApplicationFramework
// get{ return _commandBarControl; }
//}
// overrieable processing methods
protected virtual void OnBackgroundTimerTick() { }
@ -329,7 +323,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
protected override void Dispose(bool disposing)
{
if (disposing)
@ -367,7 +360,6 @@ namespace OpenLiveWriter.ApplicationFramework
_parameters = parameters;
}
public void OpenForm()
{
// open a new form on a non-background, STA thread
@ -394,7 +386,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
[STAThread]
private void ThreadMain(object[] parameters)
{

Some files were not shown because too many files have changed in this diff Show More