diff --git a/Greenshot/Controls/BindableToolStripDropDownButton.cs b/Greenshot/Controls/BindableToolStripDropDownButton.cs index 6daee9108..4c942d776 100644 --- a/Greenshot/Controls/BindableToolStripDropDownButton.cs +++ b/Greenshot/Controls/BindableToolStripDropDownButton.cs @@ -25,7 +25,7 @@ using GreenshotPlugin.Controls; namespace Greenshot.Controls { /// /// A simple ToolStripDropDownButton implementing INotifyPropertyChanged for data binding. - /// Also, when a DropDownItem is selected, the DropDownButton adops its Tag and Image. + /// Also, when a DropDownItem is selected, the DropDownButton adopts its Tag and Image. /// The selected tag can be accessed via SelectedTag property. /// public class BindableToolStripDropDownButton : ToolStripDropDownButton, INotifyPropertyChanged, IGreenshotLanguageBindable { diff --git a/Greenshot/Destinations/FileDestination.cs b/Greenshot/Destinations/FileDestination.cs index 8ba1c3a7c..e08ddfff6 100644 --- a/Greenshot/Destinations/FileDestination.cs +++ b/Greenshot/Destinations/FileDestination.cs @@ -119,7 +119,7 @@ namespace Greenshot.Destinations { fullPath = ImageOutput.SaveWithDialog(surface, captureDetails); outputMade = (fullPath != null); } - // Don't overwite filename if no output is made + // Don't overwrite filename if no output is made if (outputMade) { exportInformation.ExportMade = outputMade; exportInformation.Filepath = fullPath; diff --git a/Greenshot/Drawing/DrawableContainer.cs b/Greenshot/Drawing/DrawableContainer.cs index 89da7b3ab..957acfcd2 100644 --- a/Greenshot/Drawing/DrawableContainer.cs +++ b/Greenshot/Drawing/DrawableContainer.cs @@ -225,7 +225,7 @@ namespace Greenshot.Drawing { private Rectangle _boundsBeforeResize = Rectangle.Empty; [NonSerialized] - // "workbench" rectangle - used for calculatoing bounds during resizing (to be applied to this DrawableContainer afterwards) + // "workbench" rectangle - used for calculating bounds during resizing (to be applied to this DrawableContainer afterwards) private RectangleF _boundsAfterResize = RectangleF.Empty; public Rectangle Bounds { diff --git a/Greenshot/Drawing/Fields/AbstractFieldHolder.cs b/Greenshot/Drawing/Fields/AbstractFieldHolder.cs index d289370f7..4e0fce7a9 100644 --- a/Greenshot/Drawing/Fields/AbstractFieldHolder.cs +++ b/Greenshot/Drawing/Fields/AbstractFieldHolder.cs @@ -46,7 +46,7 @@ namespace Greenshot.Drawing.Fields { remove{ fieldChanged -= value; } } - // we keep to Coolections of our fields, dictionary for quick access, list for serialization + // we keep two Collections of our fields, dictionary for quick access, list for serialization // this allows us to use default serialization [NonSerialized] private Dictionary fieldsByType = new Dictionary(); diff --git a/Greenshot/Drawing/Fields/Binding/BidirectionalBinding.cs b/Greenshot/Drawing/Fields/Binding/BidirectionalBinding.cs index 6ebbd4be1..bb5a9fbf2 100644 --- a/Greenshot/Drawing/Fields/Binding/BidirectionalBinding.cs +++ b/Greenshot/Drawing/Fields/Binding/BidirectionalBinding.cs @@ -67,7 +67,7 @@ namespace Greenshot.Drawing.Fields.Binding { /// Property of 1st object to bind /// Object containing 2nd property to bind /// Property of 2nd object to bind - /// taking care of converting the synchronzied value to the correct target format and back + /// taking care of converting the synchronized value to the correct target format and back public BidirectionalBinding(INotifyPropertyChanged controlObject, string controlPropertyName, INotifyPropertyChanged fieldObject, string fieldPropertyName, IBindingConverter converter) : this(controlObject, controlPropertyName, fieldObject, fieldPropertyName) { this.converter = converter; } @@ -80,7 +80,7 @@ namespace Greenshot.Drawing.Fields.Binding { /// Property of 1st object to bind /// Object containing 2nd property to bind /// Property of 2nd object to bind - /// validator to intercept synchronisation if the value does not match certain criteria + /// validator to intercept synchronization if the value does not match certain criteria public BidirectionalBinding(INotifyPropertyChanged controlObject, string controlPropertyName, INotifyPropertyChanged fieldObject, string fieldPropertyName, IBindingValidator validator) : this(controlObject, controlPropertyName, fieldObject, fieldPropertyName) { this.validator = validator; } @@ -93,8 +93,8 @@ namespace Greenshot.Drawing.Fields.Binding { /// Property of 1st object to bind /// Object containing 2nd property to bind /// Property of 2nd object to bind - /// taking care of converting the synchronzied value to the correct target format and back - /// validator to intercept synchronisation if the value does not match certain criteria + /// taking care of converting the synchronized value to the correct target format and back + /// validator to intercept synchronization if the value does not match certain criteria public BidirectionalBinding(INotifyPropertyChanged controlObject, string controlPropertyName, INotifyPropertyChanged fieldObject, string fieldPropertyName, IBindingConverter converter, IBindingValidator validator) : this(controlObject, controlPropertyName, fieldObject, fieldPropertyName, converter) { this.validator = validator; } diff --git a/Greenshot/Forms/SettingsForm.cs b/Greenshot/Forms/SettingsForm.cs index a23290ae3..5ad440991 100644 --- a/Greenshot/Forms/SettingsForm.cs +++ b/Greenshot/Forms/SettingsForm.cs @@ -109,7 +109,7 @@ namespace Greenshot { } /// - /// This is a method to popululate the ComboBox + /// This is a method to populate the ComboBox /// with the items from the enumeration /// /// ComboBox to populate diff --git a/GreenshotPlugin/Core/WindowsHelper.cs b/GreenshotPlugin/Core/WindowsHelper.cs index a63a0dc8f..a8569adab 100644 --- a/GreenshotPlugin/Core/WindowsHelper.cs +++ b/GreenshotPlugin/Core/WindowsHelper.cs @@ -176,7 +176,7 @@ namespace GreenshotPlugin.Core { static WindowDetails() { try { - // Only try to instanciate when Windows 8 or later. + // Only try to instantiate when Windows 8 or later. if (Environment.OSVersion.Version.Major >= 6 && Environment.OSVersion.Version.Minor >= 2) { appVisibility = COMWrapper.CreateInstance(); } @@ -413,7 +413,7 @@ namespace GreenshotPlugin.Core { } /// - /// Retrieve the child with mathing classname + /// Retrieve the child with matching classname /// public WindowDetails GetChild(string childClassname) { foreach(WindowDetails child in Children) { @@ -425,7 +425,7 @@ namespace GreenshotPlugin.Core { } /// - /// Retrieve the children with mathing classname + /// Retrieve the children with matching classname /// public IEnumerable GetChilden(string childClassname) { foreach (WindowDetails child in Children) { @@ -499,7 +499,7 @@ namespace GreenshotPlugin.Core { /// /// The regexp to look for in the title /// The regexp to look for in the classname - /// List with all the found windows, or an emptry list + /// List with all the found windows, or an empty list public List FindChildren(string titlePattern, string classnamePattern) { return FindWindow(Children, titlePattern, classnamePattern); } @@ -627,7 +627,7 @@ namespace GreenshotPlugin.Core { } /// - /// Gets/Sets whether the window is iconic (mimimised) or not. + /// Gets/Sets whether the window is iconic (mimimized) or not. /// public bool Iconic { get { @@ -705,7 +705,7 @@ namespace GreenshotPlugin.Core { } } } else { - // Is only partly on the screen, when this happens the app is allways visible! + // Is only partly on the screen, when this happens the app is always visible! return true; } } @@ -984,7 +984,7 @@ namespace GreenshotPlugin.Core { // Correct capture size for maximized window by offsetting the X,Y with the border size captureRectangle.X += borderSize.Width; captureRectangle.Y += borderSize.Height; - // and subtrackting the border from the size (2 times, as we move right/down for the capture without resizing) + // and subtracting the border from the size (2 times, as we move right/down for the capture without resizing) captureRectangle.Width -= 2 * borderSize.Width; captureRectangle.Height -= 2 * borderSize.Height; } else if (autoMode) { @@ -1035,7 +1035,7 @@ namespace GreenshotPlugin.Core { // Make sure the application window is active, so the colors & buttons are right ToForeground(); } - // Make sure all changes are processed and visisble + // Make sure all changes are processed and visible Application.DoEvents(); using (Bitmap blackBitmap = WindowCapture.CaptureRectangle(captureRectangle)) { capturedBitmap = ApplyTransparency(blackBitmap, whiteBitmap); @@ -1043,7 +1043,7 @@ namespace GreenshotPlugin.Core { } } catch (Exception e) { LOG.Debug("Exception: ", e); - // Some problem occured, cleanup and make a normal capture + // Some problem occurred, cleanup and make a normal capture if (capturedBitmap != null) { capturedBitmap.Dispose(); capturedBitmap = null; @@ -1067,7 +1067,7 @@ namespace GreenshotPlugin.Core { // Make sure the application window is active, so the colors & buttons are right ToForeground(); } - // Make sure all changes are processed and visisble + // Make sure all changes are processed and visible Application.DoEvents(); // Capture from the screen capturedBitmap = WindowCapture.CaptureRectangle(captureRectangle); @@ -1135,7 +1135,7 @@ namespace GreenshotPlugin.Core { /// /// Apply transparency by comparing a transparent capture with a black and white background /// A "Math.min" makes sure there is no overflow, but this could cause the picture to have shifted colors. - /// The pictures should have been taken without differency, exect for the colors. + /// The pictures should have been taken without differency, except for the colors. /// /// Bitmap with the black image /// Bitmap with the black image @@ -1350,7 +1350,7 @@ namespace GreenshotPlugin.Core { } /// - /// Return an Image representating the Window! + /// Return an Image representing the Window! /// As GDI+ draws it, it will be without Aero borders! /// public Image PrintWindow() { @@ -1451,9 +1451,9 @@ namespace GreenshotPlugin.Core { } /// - /// Gets the Destop window + /// Gets the Desktop window /// - /// WindowDetails for the destop window + /// WindowDetails for the desktop window public static WindowDetails GetDesktopWindow() { return new WindowDetails(User32.GetDesktopWindow()); } diff --git a/GreenshotPlugin/IniFile/IniConfig.cs b/GreenshotPlugin/IniFile/IniConfig.cs index dd2345dd7..7eb90f1e6 100644 --- a/GreenshotPlugin/IniFile/IniConfig.cs +++ b/GreenshotPlugin/IniFile/IniConfig.cs @@ -257,7 +257,7 @@ namespace Greenshot.IniFile { /// /// IniSection private static void FixProperties(IniSection section) { - // Make properties unchangable + // Make properties unchangeable if (fixedProperties != null) { Dictionary fixedPropertiesForSection = null; if (fixedProperties.TryGetValue(section.IniSectionAttribute.Name, out fixedPropertiesForSection)) {