Browse Source

Конец

Kuzmenco 2 years ago
parent
commit
f6e186bbbf
2 changed files with 0 additions and 11 deletions
  1. 0 2
      автопрокат/Form2.Designer.cs
  2. 0 9
      автопрокат/Form2.cs

+ 0 - 2
автопрокат/Form2.Designer.cs

@@ -312,8 +312,6 @@ namespace автопрокат
             this.Name = "Form2";
             this.Text = "Form2";
             this.Load += new System.EventHandler(this.Form2_Load);
-            this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form2_MouseDown);
-            this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form2_MouseMove);
             this.panel1.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.автопрокатDataSet)).EndInit();

+ 0 - 9
автопрокат/Form2.cs

@@ -99,15 +99,6 @@ namespace автопрокат
             lastPoint = new Point(e.X, e.Y);
         }
    
-        private void Form2_MouseMove(object sender, MouseEventArgs e)
-        {
-            this.Left += e.X - lastPoint.X;
-            this.Top += e.Y - lastPoint.Y;
-        }
 
-        private void Form2_MouseDown(object sender, MouseEventArgs e)
-        {
-            lastPoint = new Point(e.X, e.Y);
-        }
     }
 }