Готовая 5 лаба
This commit is contained in:
parent
814b0b8252
commit
737d77ac68
@ -146,6 +146,8 @@ namespace Catamaran.Generics
|
||||
}
|
||||
if (catamaran != null)
|
||||
{
|
||||
catamaran._pictureWidth = _pictureWidth;
|
||||
catamaran._pictureHeight = _pictureHeight;
|
||||
catamaran.SetPosition(i % width * _placeSizeWidth + _placeSizeWidth / 40,
|
||||
(height - diff) * _placeSizeHeight + _placeSizeHeight / 15);
|
||||
catamaran.DrawTransport(g);
|
||||
|
@ -20,11 +20,11 @@ namespace Catamaran.DrawningObjects
|
||||
/// <summary>
|
||||
/// Ширина окна
|
||||
/// </summary>
|
||||
private int _pictureWidth;
|
||||
public int _pictureWidth;
|
||||
/// <summary>
|
||||
/// Высота окна
|
||||
/// </summary>
|
||||
private int _pictureHeight;
|
||||
public int _pictureHeight;
|
||||
/// <summary>
|
||||
/// Левая координата прорисовки катамарана
|
||||
/// </summary>
|
||||
|
@ -118,7 +118,7 @@ namespace Catamaran
|
||||
case "labelModifiedObject":
|
||||
_catamaran = new DrawningSailCatamaran((int)numericUpDownSpeed.Value,
|
||||
(int)numericUpDownWeight.Value, Color.White, Color.Black, checkBoxSail.Checked,
|
||||
checkBoxFloatDetails.Checked, pictureBoxObject.Width,
|
||||
checkBoxFloatDetails.Checked, pictureBoxObject.Width,
|
||||
pictureBoxObject.Height);
|
||||
break;
|
||||
}
|
||||
@ -164,6 +164,7 @@ namespace Catamaran
|
||||
EventAddCatamaran?.Invoke(_catamaran);
|
||||
Close();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user