/// <summary>
 /// Applies a new size when the user presses Enter in the Size text box.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">Keyboard event data.</param>
 private void EventMenuFocusSizeTextBoxKeyPress(object sender, KeyPressEventArgs e)
 {
     if ((e.KeyChar == (char)Keys.Return) && (this.focusControlMenuOwner != null))
     {
         FromString.IfIntPair(
             this.menuFocusSizeTextBox.Text,
             'x',
             (width, height) =>
         {
             this.focusControlMenuOwner.Width  = width;
             this.focusControlMenuOwner.Height = height;
         },
             null);
         e.Handled = true;
     }
 }
        /// <summary>
        /// Applies a new common size to the current focus area.
        /// </summary>
        /// <param name="sender">The sender of the event.</param>
        /// <param name="e">Empty event data.</param>
        private void EventMenuFocusCommonSizesItemsClick(object sender, EventArgs e)
        {
            ToolStripMenuItem senderMenu = sender as ToolStripMenuItem;

            if ((senderMenu != null) && (this.focusControlMenuOwner != null))
            {
                FromString.IfIntPair(
                    senderMenu.Text,
                    'x',
                    (width, height) =>
                {
                    this.focusControlMenuOwner.Width  = width;
                    this.focusControlMenuOwner.Height = height;
                },
                    null);
            }
        }