Removed PictureBox to reduce the complexity.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1991 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-08-15 12:10:36 +00:00
parent 61f92926de
commit 1c4957db59
2 changed files with 25 additions and 35 deletions

View file

@ -23,7 +23,6 @@ namespace Greenshot.Forms {
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.Windows.Forms.PictureBox pictureBox;
private System.ComponentModel.IContainer components = null;
/// <summary>
@ -45,29 +44,20 @@ namespace Greenshot.Forms {
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent() {
this.pictureBox = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit();
this.SuspendLayout();
//
// pictureBox
//
this.pictureBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox.Location = new System.Drawing.Point(0, 0);
this.pictureBox.Name = "pictureBox";
this.pictureBox.Size = new System.Drawing.Size(0, 0);
this.pictureBox.TabIndex = 1;
this.pictureBox.TabStop = false;
this.pictureBox.MouseMove += new System.Windows.Forms.MouseEventHandler(this.PictureBoxMouseMove);
this.pictureBox.MouseDown += new System.Windows.Forms.MouseEventHandler(this.PictureBoxMouseDown);
this.pictureBox.Paint += new System.Windows.Forms.PaintEventHandler(this.PictureBoxPaint);
this.pictureBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.PictureBoxMouseUp);
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
this.Paint += new System.Windows.Forms.PaintEventHandler(this.OnPaint);
this.MouseUp += new System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
//
// CaptureForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.ClientSize = new System.Drawing.Size(0, 0);
this.Controls.Add(this.pictureBox);
this.Cursor = System.Windows.Forms.Cursors.Cross;
this.DoubleBuffered = true;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
@ -77,7 +67,6 @@ namespace Greenshot.Forms {
this.TopMost = true;
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.CaptureFormKeyDown);
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.CaptureFormKeyUp);
((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit();
this.Visible = false;
this.ResumeLayout(false);
}