Compare commits

...

3 Commits

2 changed files with 3 additions and 5 deletions

View File

@ -29,10 +29,8 @@ namespace AirFighter
{ {
if (width < _airFighterWidth || height < _airFighterHeight) return; if (width < _airFighterWidth || height < _airFighterHeight) return;
if (_startPosX + _airFighterWidth > _pictureWidth) return; if (x + _airFighterWidth > width || x < 0) return;
if (_startPosX < 0) return; if (y + _airFighterHeight > height || y < 0) return;
if (_startPosY < 0) return;
if (_startPosY + _airFighterHeight > _pictureHeight) return;
_startPosX = x; _startPosX = x;
_startPosY = y; _startPosY = y;

View File

@ -49,7 +49,7 @@
this.CreateButton.Name = "CreateButton"; this.CreateButton.Name = "CreateButton";
this.CreateButton.Size = new System.Drawing.Size(94, 29); this.CreateButton.Size = new System.Drawing.Size(94, 29);
this.CreateButton.TabIndex = 0; this.CreateButton.TabIndex = 0;
this.CreateButton.Text = "create"; this.CreateButton.Text = "создать";
this.CreateButton.UseVisualStyleBackColor = true; this.CreateButton.UseVisualStyleBackColor = true;
this.CreateButton.Click += new System.EventHandler(this.CreateButton_Click); this.CreateButton.Click += new System.EventHandler(this.CreateButton_Click);
// //