mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
Adding region capture menu form
This commit is contained in:
parent
4fd322b031
commit
5f9ad5ad3b
5 changed files with 463 additions and 0 deletions
274
ShareX.ScreenCaptureLib/Forms/RegionCaptureMenuForm.Designer.cs
generated
Normal file
274
ShareX.ScreenCaptureLib/Forms/RegionCaptureMenuForm.Designer.cs
generated
Normal file
|
@ -0,0 +1,274 @@
|
|||
namespace ShareX.ScreenCaptureLib
|
||||
{
|
||||
partial class RegionCaptureMenuForm
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.tsTools = new System.Windows.Forms.ToolStrip();
|
||||
this.tsbRegionRectangle = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbRegionRoundedRectangle = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbRegionEllipse = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbDrawingRectangle = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbDrawingRoundedRectangle = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbRegionFreehand = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbDrawingEllipse = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbDrawingFreehand = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbDrawingLine = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbDrawingArrow = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbDrawingText = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbDrawingSpeechBalloon = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbDrawingStep = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbDrawingImage = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbEffectBlur = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbEffectPixelate = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbEffectHighlight = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsTools.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// tsTools
|
||||
//
|
||||
this.tsTools.AutoSize = false;
|
||||
this.tsTools.CanOverflow = false;
|
||||
this.tsTools.Dock = System.Windows.Forms.DockStyle.None;
|
||||
this.tsTools.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.tsbRegionRectangle,
|
||||
this.tsbRegionRoundedRectangle,
|
||||
this.tsbRegionEllipse,
|
||||
this.tsbRegionFreehand,
|
||||
this.tsbDrawingRectangle,
|
||||
this.tsbDrawingRoundedRectangle,
|
||||
this.tsbDrawingEllipse,
|
||||
this.tsbDrawingFreehand,
|
||||
this.tsbDrawingLine,
|
||||
this.tsbDrawingArrow,
|
||||
this.tsbDrawingText,
|
||||
this.tsbDrawingSpeechBalloon,
|
||||
this.tsbDrawingStep,
|
||||
this.tsbDrawingImage,
|
||||
this.tsbEffectBlur,
|
||||
this.tsbEffectPixelate,
|
||||
this.tsbEffectHighlight});
|
||||
this.tsTools.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.VerticalStackWithOverflow;
|
||||
this.tsTools.Location = new System.Drawing.Point(0, 0);
|
||||
this.tsTools.Name = "tsTools";
|
||||
this.tsTools.Padding = new System.Windows.Forms.Padding(0);
|
||||
this.tsTools.Size = new System.Drawing.Size(32, 432);
|
||||
this.tsTools.TabIndex = 0;
|
||||
this.tsTools.Text = "toolStrip1";
|
||||
//
|
||||
// tsbRegionRectangle
|
||||
//
|
||||
this.tsbRegionRectangle.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbRegionRectangle.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.layer_shape_region;
|
||||
this.tsbRegionRectangle.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbRegionRectangle.Name = "tsbRegionRectangle";
|
||||
this.tsbRegionRectangle.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbRegionRectangle.Text = "toolStripButton1";
|
||||
//
|
||||
// tsbRegionRoundedRectangle
|
||||
//
|
||||
this.tsbRegionRoundedRectangle.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbRegionRoundedRectangle.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.layer_shape_round_region;
|
||||
this.tsbRegionRoundedRectangle.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbRegionRoundedRectangle.Name = "tsbRegionRoundedRectangle";
|
||||
this.tsbRegionRoundedRectangle.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbRegionRoundedRectangle.Text = "toolStripButton2";
|
||||
//
|
||||
// tsbRegionEllipse
|
||||
//
|
||||
this.tsbRegionEllipse.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbRegionEllipse.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.layer_shape_ellipse_region;
|
||||
this.tsbRegionEllipse.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbRegionEllipse.Name = "tsbRegionEllipse";
|
||||
this.tsbRegionEllipse.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbRegionEllipse.Text = "toolStripButton3";
|
||||
//
|
||||
// tsbDrawingRectangle
|
||||
//
|
||||
this.tsbDrawingRectangle.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbDrawingRectangle.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.layer_shape;
|
||||
this.tsbDrawingRectangle.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbDrawingRectangle.Name = "tsbDrawingRectangle";
|
||||
this.tsbDrawingRectangle.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbDrawingRectangle.Text = "toolStripButton4";
|
||||
//
|
||||
// tsbDrawingRoundedRectangle
|
||||
//
|
||||
this.tsbDrawingRoundedRectangle.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbDrawingRoundedRectangle.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.layer_shape_round;
|
||||
this.tsbDrawingRoundedRectangle.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbDrawingRoundedRectangle.Name = "tsbDrawingRoundedRectangle";
|
||||
this.tsbDrawingRoundedRectangle.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbDrawingRoundedRectangle.Text = "toolStripButton5";
|
||||
//
|
||||
// tsbRegionFreehand
|
||||
//
|
||||
this.tsbRegionFreehand.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbRegionFreehand.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.layer_shape_polygon;
|
||||
this.tsbRegionFreehand.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbRegionFreehand.Name = "tsbRegionFreehand";
|
||||
this.tsbRegionFreehand.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbRegionFreehand.Text = "toolStripButton6";
|
||||
//
|
||||
// tsbDrawingEllipse
|
||||
//
|
||||
this.tsbDrawingEllipse.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbDrawingEllipse.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.layer_shape_ellipse;
|
||||
this.tsbDrawingEllipse.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbDrawingEllipse.Name = "tsbDrawingEllipse";
|
||||
this.tsbDrawingEllipse.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbDrawingEllipse.Text = "toolStripButton7";
|
||||
//
|
||||
// tsbDrawingFreehand
|
||||
//
|
||||
this.tsbDrawingFreehand.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbDrawingFreehand.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.layer_shape_curve;
|
||||
this.tsbDrawingFreehand.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbDrawingFreehand.Name = "tsbDrawingFreehand";
|
||||
this.tsbDrawingFreehand.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbDrawingFreehand.Text = "toolStripButton8";
|
||||
//
|
||||
// tsbDrawingLine
|
||||
//
|
||||
this.tsbDrawingLine.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbDrawingLine.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.layer_shape_line;
|
||||
this.tsbDrawingLine.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbDrawingLine.Name = "tsbDrawingLine";
|
||||
this.tsbDrawingLine.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbDrawingLine.Text = "toolStripButton9";
|
||||
//
|
||||
// tsbDrawingArrow
|
||||
//
|
||||
this.tsbDrawingArrow.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbDrawingArrow.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.layer_shape_arrow;
|
||||
this.tsbDrawingArrow.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbDrawingArrow.Name = "tsbDrawingArrow";
|
||||
this.tsbDrawingArrow.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbDrawingArrow.Text = "toolStripButton10";
|
||||
//
|
||||
// tsbDrawingText
|
||||
//
|
||||
this.tsbDrawingText.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbDrawingText.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.layer_shape_text;
|
||||
this.tsbDrawingText.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbDrawingText.Name = "tsbDrawingText";
|
||||
this.tsbDrawingText.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbDrawingText.Text = "toolStripButton11";
|
||||
//
|
||||
// tsbDrawingSpeechBalloon
|
||||
//
|
||||
this.tsbDrawingSpeechBalloon.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbDrawingSpeechBalloon.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.balloon_box_left;
|
||||
this.tsbDrawingSpeechBalloon.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbDrawingSpeechBalloon.Name = "tsbDrawingSpeechBalloon";
|
||||
this.tsbDrawingSpeechBalloon.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbDrawingSpeechBalloon.Text = "toolStripButton12";
|
||||
//
|
||||
// tsbDrawingStep
|
||||
//
|
||||
this.tsbDrawingStep.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbDrawingStep.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.counter_reset;
|
||||
this.tsbDrawingStep.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbDrawingStep.Name = "tsbDrawingStep";
|
||||
this.tsbDrawingStep.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbDrawingStep.Text = "toolStripButton13";
|
||||
//
|
||||
// tsbDrawingImage
|
||||
//
|
||||
this.tsbDrawingImage.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbDrawingImage.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.image;
|
||||
this.tsbDrawingImage.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbDrawingImage.Name = "tsbDrawingImage";
|
||||
this.tsbDrawingImage.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbDrawingImage.Text = "toolStripButton14";
|
||||
//
|
||||
// tsbEffectBlur
|
||||
//
|
||||
this.tsbEffectBlur.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbEffectBlur.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.layer_shade;
|
||||
this.tsbEffectBlur.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbEffectBlur.Name = "tsbEffectBlur";
|
||||
this.tsbEffectBlur.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbEffectBlur.Text = "toolStripButton15";
|
||||
//
|
||||
// tsbEffectPixelate
|
||||
//
|
||||
this.tsbEffectPixelate.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbEffectPixelate.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.grid;
|
||||
this.tsbEffectPixelate.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbEffectPixelate.Name = "tsbEffectPixelate";
|
||||
this.tsbEffectPixelate.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbEffectPixelate.Text = "toolStripButton16";
|
||||
//
|
||||
// tsbEffectHighlight
|
||||
//
|
||||
this.tsbEffectHighlight.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
|
||||
this.tsbEffectHighlight.Image = global::ShareX.ScreenCaptureLib.Properties.Resources.highlighter_text;
|
||||
this.tsbEffectHighlight.ImageTransparentColor = System.Drawing.Color.Magenta;
|
||||
this.tsbEffectHighlight.Name = "tsbEffectHighlight";
|
||||
this.tsbEffectHighlight.Size = new System.Drawing.Size(31, 20);
|
||||
this.tsbEffectHighlight.Text = "toolStripButton17";
|
||||
//
|
||||
// RegionCaptureFormMenu
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoSize = true;
|
||||
this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
|
||||
this.ClientSize = new System.Drawing.Size(318, 461);
|
||||
this.Controls.Add(this.tsTools);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||
this.Name = "RegionCaptureFormMenu";
|
||||
this.Text = "RegionCaptureFormMenu";
|
||||
this.tsTools.ResumeLayout(false);
|
||||
this.tsTools.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.ToolStrip tsTools;
|
||||
private System.Windows.Forms.ToolStripButton tsbRegionRectangle;
|
||||
private System.Windows.Forms.ToolStripButton tsbRegionRoundedRectangle;
|
||||
private System.Windows.Forms.ToolStripButton tsbRegionEllipse;
|
||||
private System.Windows.Forms.ToolStripButton tsbDrawingRectangle;
|
||||
private System.Windows.Forms.ToolStripButton tsbDrawingRoundedRectangle;
|
||||
private System.Windows.Forms.ToolStripButton tsbRegionFreehand;
|
||||
private System.Windows.Forms.ToolStripButton tsbDrawingEllipse;
|
||||
private System.Windows.Forms.ToolStripButton tsbDrawingFreehand;
|
||||
private System.Windows.Forms.ToolStripButton tsbDrawingLine;
|
||||
private System.Windows.Forms.ToolStripButton tsbDrawingArrow;
|
||||
private System.Windows.Forms.ToolStripButton tsbDrawingText;
|
||||
private System.Windows.Forms.ToolStripButton tsbDrawingSpeechBalloon;
|
||||
private System.Windows.Forms.ToolStripButton tsbDrawingStep;
|
||||
private System.Windows.Forms.ToolStripButton tsbDrawingImage;
|
||||
private System.Windows.Forms.ToolStripButton tsbEffectBlur;
|
||||
private System.Windows.Forms.ToolStripButton tsbEffectPixelate;
|
||||
private System.Windows.Forms.ToolStripButton tsbEffectHighlight;
|
||||
}
|
||||
}
|
44
ShareX.ScreenCaptureLib/Forms/RegionCaptureMenuForm.cs
Normal file
44
ShareX.ScreenCaptureLib/Forms/RegionCaptureMenuForm.cs
Normal file
|
@ -0,0 +1,44 @@
|
|||
#region License Information (GPL v3)
|
||||
|
||||
/*
|
||||
ShareX - A program that allows you to take screenshots and share any file type
|
||||
Copyright (c) 2007-2016 ShareX Team
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License
|
||||
as published by the Free Software Foundation; either version 2
|
||||
of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
Optionally you can also view the license at <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#endregion License Information (GPL v3)
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ShareX.ScreenCaptureLib
|
||||
{
|
||||
public partial class RegionCaptureMenuForm : Form
|
||||
{
|
||||
public RegionCaptureMenuForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
123
ShareX.ScreenCaptureLib/Forms/RegionCaptureMenuForm.resx
Normal file
123
ShareX.ScreenCaptureLib/Forms/RegionCaptureMenuForm.resx
Normal file
|
@ -0,0 +1,123 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="tsTools.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
|
@ -206,6 +206,7 @@ public ShapeManager(RegionCaptureForm form)
|
|||
|
||||
ResizeNodes[(int)NodePosition.BottomRight].Order = 10;
|
||||
|
||||
form.Shown += form_Shown;
|
||||
form.LostFocus += form_LostFocus;
|
||||
form.MouseDown += form_MouseDown;
|
||||
form.MouseUp += form_MouseUp;
|
||||
|
@ -235,6 +236,18 @@ public ShapeManager(RegionCaptureForm form)
|
|||
}
|
||||
}
|
||||
|
||||
private void form_Shown(object sender, EventArgs e)
|
||||
{
|
||||
CreateMenu();
|
||||
}
|
||||
|
||||
private void CreateMenu()
|
||||
{
|
||||
RegionCaptureMenuForm menu = new RegionCaptureMenuForm();
|
||||
menu.Location = new Point(100, 100);
|
||||
menu.Show(form);
|
||||
}
|
||||
|
||||
private void CreateContextMenu()
|
||||
{
|
||||
cmsContextMenu = new ContextMenuStrip(form.components);
|
||||
|
|
|
@ -59,6 +59,12 @@
|
|||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Forms\RegionCaptureMenuForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Forms\RegionCaptureMenuForm.Designer.cs">
|
||||
<DependentUpon>RegionCaptureMenuForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Shapes\AnnotationOptions.cs" />
|
||||
<Compile Include="Enums.cs" />
|
||||
<Compile Include="Forms\RegionCaptureSimpleAnnotateForm.cs">
|
||||
|
@ -208,6 +214,9 @@
|
|||
<None Include="Resources\exclamation-button.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Forms\RegionCaptureMenuForm.resx">
|
||||
<DependentUpon>RegionCaptureMenuForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Forms\ScrollingCaptureForm.de.resx">
|
||||
<DependentUpon>ScrollingCaptureForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
|
Loading…
Reference in a new issue