Compare commits

...

1 Commits
main ... lab1

Author SHA1 Message Date
marusya
1028b61ec9 lab1 2023-11-05 21:12:46 +04:00
8 changed files with 778 additions and 2 deletions

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SelfPropelledArtilleryUnit
{
public enum DirectionType
{
Up = 1,
Down = 2,
Left = 3,
Right = 4
}
}

View File

@ -0,0 +1,307 @@
using System;
using System.Collections.Generic;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SelfPropelledArtilleryUnit
{
public class DrawningUsta
{
private int lineWidth;
/// Класс-сущность
public EntityUsta? EntityUsta { get; private set; }
/// Ширина окна
private int _pictureWidth;
/// Высота окна
private int _pictureHeight;
/// Левая координата прорисовки установки
private int _startPosX;
/// Верхняя кооридната прорисовки установки
private int _startPosY;
/// Ширина прорисовки установки
private readonly int _ustaWidth = 140;
/// Высота прорисовки установки
private readonly int _ustaHeight = 90;
/// Инициализация свойств
/// <param name="speed">Скорость</param>
/// <param name="weight">Вес</param>
/// <param name="bodyColor">Общий цвет</param>
/// <param name="additionalColor">Дополнительный цвет</param>
/// <param name="bodyKit">Признак наличия батареи</param>
/// <param name="pushka">Признак наличия пушки</param>
/// <param name="width">Ширина картинки</param>
/// <param name="height">Высота картинки</param>
/// <returns>true - объект создан, false - проверка не пройдена,
public bool Init(int speed, double weight, Color bodyColor, Color additionalColor, bool bodyKit, bool pushka, int width, int height){
if (width < _pictureWidth || height < _pictureHeight)
{
return false;
}
_pictureWidth = width;
_pictureHeight = height;
EntityUsta = new EntityUsta();
EntityUsta.Init(speed, weight, bodyColor, additionalColor,
bodyKit, pushka);
return true;
}
/// Установка позиции
/// <param name="x">Координата X</param>
/// <param name="y">Координата Y</param>
public void SetPosition(int x, int y)
{
// TODO: Изменение x, y
if (x <= _pictureWidth - _ustaWidth && y <= _pictureHeight - _ustaHeight)
{
_startPosX = x;
_startPosY = y;
}
}
/// Изменение направления перемещения
/// <param name="direction">Направление</param>
public void MoveTransport(DirectionType direction)
{
if (EntityUsta == null)
{
return;
}
switch (direction)
{
//влево
case DirectionType.Left:
if (_startPosX - EntityUsta.Step > 0)
{
_startPosX -= (int)EntityUsta.Step;
}
if (_startPosX - EntityUsta.Step < 0)
{
_startPosX -= _startPosX;
}
break;
//вверх
case DirectionType.Up:
if (_startPosY - EntityUsta.Step > 5)
{
_startPosY -= (int)EntityUsta.Step;
}
else if (_startPosY + 7 - EntityUsta.Step < 0)
{
_startPosY = _startPosY - _startPosY + 10;
}
break;
// вправо
case DirectionType.Right:
if (_startPosX + EntityUsta.Step + _ustaWidth < _pictureWidth)
{
_startPosX += (int)EntityUsta.Step;
}
else if (_startPosX + EntityUsta.Step + _ustaWidth > _pictureWidth)
{
_startPosX += _pictureWidth - _startPosX - _ustaWidth;
}
break;
//вниз
case DirectionType.Down:
if (_startPosY + EntityUsta.Step + _ustaHeight < _pictureHeight)
{
_startPosY += (int)EntityUsta.Step;
}
else if (_startPosY + EntityUsta.Step + _ustaHeight > _pictureHeight)
{
_startPosY += _pictureHeight - _startPosY - _ustaHeight;
}
break;
}
}
/// <summary>
/// Прорисовка объекта
/// </summary>
/// <param name="g"></param>
public void DrawTransport(Graphics g)
{
if (EntityUsta == null)
{
return;
}
Pen pen = new(Color.Black);
Brush additionalBrush = new SolidBrush(EntityUsta.AdditionalColor);
Brush BodyColor = new SolidBrush(EntityUsta.BodyColor);
//зеленый темнее
lineWidth = 10;
Color color1 = Color.FromArgb(65, 72, 51);
Brush pen1 = new SolidBrush(color1);
//black
Color color3 = Color.FromArgb(0, 0, 0);
Brush pen3 = new SolidBrush(color3);
//зеленый мох
Color color2 = Color.FromArgb(47, 69, 56);
Brush pen2 = new SolidBrush(color1);
//прорисовка арт. установки
int cornerRadius = 16; // Радиус скругления углов
int cornerRadius1 = 12;
GraphicsPath path = new GraphicsPath();
path.AddArc(_startPosX + 5, _startPosY + 50, 2 * cornerRadius1, 2 * cornerRadius1, 180, 90); // Верхний левый угол
path.AddArc(_startPosX + 110, _startPosY + 50, 2 * cornerRadius1, 2 * cornerRadius1, 270, 90); // Верхний правый угол
path.AddArc(_startPosX + 110, _startPosY + 50, 2 * cornerRadius1, 2 * cornerRadius, 0, 90); // Нижний правый угол
path.AddArc(_startPosX + 5, _startPosY + 50, 2 * cornerRadius, 2 * cornerRadius, 90, 90); // Нижний левый угол
path.CloseFigure(); // Замкнуть путь
// отрисовка прямоугольника с кругленными краями
g.FillPath(pen1, path);
g.DrawPath(pen, path);
g.FillEllipse(pen3, _startPosX + 47, _startPosY + 44, 13, 13);
g.FillEllipse(pen3, _startPosX + 62, _startPosY + 44, 13, 13);
g.FillEllipse(pen3, _startPosX + 77, _startPosY + 44, 13, 13);
g.FillRectangle(pen2, _startPosX + 45, _startPosY + 20, 40, 20);
g.DrawRectangle(pen, _startPosX + 45, _startPosY + 20, 40, 20);
g.DrawEllipse(pen, _startPosX + 40, _startPosY + 65, 13, 13);
g.DrawEllipse(pen, _startPosX + 55, _startPosY + 65, 13, 13);
g.DrawEllipse(pen, _startPosX + 70, _startPosY + 65, 13, 13);
g.DrawEllipse(pen, _startPosX + 85, _startPosY + 65, 13, 13);
g.FillRectangle(pen2, _startPosX + 10, _startPosY + 40, 120, 10);
g.DrawRectangle(pen, _startPosX + 10, _startPosY + 40, 120, 10);
g.FillEllipse(pen3, _startPosX + 10, _startPosY + 52, 26, 26);
g.FillEllipse(pen3, _startPosX + 105, _startPosY + 52, 26, 26);
// батарея
if (EntityUsta.BodyKit)
{
GraphicsPath path1 = new GraphicsPath();
path1.AddLine(_startPosX + 15, _startPosY + 40, _startPosX + 15, _startPosY + 30);
path1.AddLine(_startPosX + 15, _startPosY + 30, _startPosX + 15, _startPosY + 35);
path1.AddLine(_startPosX + 15, _startPosY + 35, _startPosX + 25, _startPosY + 35);
path1.AddLine(_startPosX + 25, _startPosY + 35, _startPosX + 30, _startPosY + 30);
path1.AddLine(_startPosX + 30, _startPosY + 30, _startPosX + 35, _startPosY + 40);
path1.CloseFigure();
g.DrawPath(pen, path1);
g.FillPath(BodyColor, path1);
GraphicsPath path2 = new GraphicsPath();
path2.AddLine(_startPosX + 15, _startPosY + 30, _startPosX + 40, _startPosY + 20);
path2.AddLine(_startPosX + 40, _startPosY + 20, _startPosX + 40, _startPosY + 25);
path2.AddLine(_startPosX + 40, _startPosY + 25, _startPosX + 25, _startPosY + 35);
path2.AddLine(_startPosX + 25, _startPosY + 35, _startPosX + 15, _startPosY + 35);
path2.CloseFigure();
g.DrawPath(pen, path2);
g.FillPath(additionalBrush, path2);
GraphicsPath path3 = new GraphicsPath();
path3.AddLine(_startPosX + 10, _startPosY + 32, _startPosX, _startPosY + 10);
path3.AddLine(_startPosX, _startPosY + 10, _startPosX + 40, _startPosY - 7);
path3.AddLine(_startPosX + 40, _startPosY - 7, _startPosX + 50, _startPosY + 16);
path3.CloseFigure();
g.DrawPath(pen, path3);
g.FillPath(pen3, path3);
GraphicsPath path4 = new GraphicsPath();
path4.AddLine(_startPosX, _startPosY + 10, _startPosX + 40, _startPosY - 7);
path4.AddLine(_startPosX + 40, _startPosY - 7, _startPosX + 43, _startPosY - 5);
path4.AddLine(_startPosX + 43, _startPosY - 5, _startPosX + 41, _startPosY - 3);
path4.AddLine(_startPosX + 41, _startPosY - 3, _startPosX + 2, _startPosY + 13);
path4.CloseFigure();
g.DrawPath(pen, path4);
g.FillPath(additionalBrush, path4);
GraphicsPath path5 = new GraphicsPath();
path5.AddLine(_startPosX + 3, _startPosY + 15, _startPosX + 45, _startPosY - 2);
path5.AddLine(_startPosX + 46, _startPosY - 2, _startPosX + 49, _startPosY - 1);
path5.AddLine(_startPosX + 49, _startPosY - 1, _startPosX + 46, _startPosY + 3);
path5.AddLine(_startPosX + 46, _startPosY + 3, _startPosX + 6, _startPosY + 20);
path5.CloseFigure();
g.DrawPath(pen, path5);
g.FillPath(BodyColor, path5);
GraphicsPath path6 = new GraphicsPath();
path6.AddLine(_startPosX + 5, _startPosY + 22, _startPosX + 47, _startPosY + 5);
path6.AddLine(_startPosX + 47, _startPosY + 5, _startPosX + 51, _startPosY + 5);
path6.AddLine(_startPosX + 51, _startPosY + 5, _startPosX + 53, _startPosY + 7);
path6.AddLine(_startPosX + 53, _startPosY + 7, _startPosX + 8, _startPosY + 25);
path6.CloseFigure();
g.DrawPath(pen, path6);
g.FillPath(additionalBrush, path6);
GraphicsPath path7 = new GraphicsPath();
path7.AddLine(_startPosX + 7, _startPosY + 27, _startPosX + 46, _startPosY + 11);
path7.AddLine(_startPosX + 46, _startPosY + 11, _startPosX + 51, _startPosY + 9);
path7.AddLine(_startPosX + 51, _startPosY + 9, _startPosX + 56, _startPosY + 11);
path7.AddLine(_startPosX + 56, _startPosY + 11, _startPosX + 10, _startPosY + 31);
path7.CloseFigure();
g.DrawPath(pen, path7);
g.FillPath(BodyColor, path7);
}
// пушка
if (EntityUsta.Pushka)
{
g.FillRectangle(pen2, _startPosX + 80, _startPosY + 25, 10, 10);
g.DrawRectangle(pen, _startPosX + 80, _startPosY + 25, 10, 10);
g.FillRectangle(additionalBrush, _startPosX + 90, _startPosY + 28, 40, 5);
g.DrawRectangle(pen, _startPosX + 90, _startPosY + 28, 40, 5);
g.FillRectangle(additionalBrush, _startPosX + 130, _startPosY + 27, 5, 7);
g.DrawRectangle(pen, _startPosX + 130, _startPosY + 27, 5, 7);
}
}
}
}

View File

@ -0,0 +1,62 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SelfPropelledArtilleryUnit
{
public class EntityUsta
{
/// <summary>
/// Скорость
/// </summary>
public int Speed { get; private set; }
/// <summary>
/// Вес
/// </summary>
public double Weight { get; private set; }
/// <summary>
/// Основной цвет
/// </summary>
public Color BodyColor { get; private set; }
/// <summary>
/// Дополнительный цвет (для опциональных элементов)
/// </summary>
public Color AdditionalColor { get; private set; }
/// <summary>
/// Признак (опция) наличия батареи
/// </summary>
public bool BodyKit { get; private set; }
/// <summary>
/// Признак (опция) наличия пушки
/// </summary>
public bool Pushka { get; private set; }
/// <summary>
/// Шаг перемещения установки
/// </summary>
public double Step => (double)Speed * 100 / Weight;
/// <summary>
/// Инициализация полей объекта-класса установки с пушкой
/// </summary>
/// <param name="speed">Скорость</param>
/// <param name="weight">Вес установки</param>
/// <param name="bodyColor">Основной цвет</param>
/// <param name="additionalColor">Дополнительный цвет</param>
/// <param name="bodyKit">Признак наличия батареи</param>
/// <param name="pushka">Признак наличия пушки</param>
public void Init(int speed, double weight, Color bodyColor, Color
additionalColor, bool bodyKit, bool pushka)
{
Speed = speed;
Weight = weight;
BodyColor = bodyColor;
AdditionalColor = additionalColor;
BodyKit = bodyKit;
Pushka = pushka;
}
}
}

View File

@ -28,18 +28,102 @@
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormSelfPropelledArtilleryUnit));
pictureBoxUsta = new PictureBox();
buttonCreate = new Button();
buttonRight = new Button();
buttonLeft = new Button();
buttonDown = new Button();
buttonUp = new Button();
((System.ComponentModel.ISupportInitialize)pictureBoxUsta).BeginInit();
SuspendLayout();
//
// pictureBoxUsta
//
pictureBoxUsta.Dock = DockStyle.Fill;
pictureBoxUsta.Location = new Point(0, 0);
pictureBoxUsta.Name = "pictureBoxUsta";
pictureBoxUsta.Size = new Size(884, 461);
pictureBoxUsta.SizeMode = PictureBoxSizeMode.AutoSize;
pictureBoxUsta.TabIndex = 0;
pictureBoxUsta.TabStop = false;
//
// buttonCreate
//
buttonCreate.Location = new Point(22, 417);
buttonCreate.Name = "buttonCreate";
buttonCreate.Size = new Size(109, 28);
buttonCreate.TabIndex = 8;
buttonCreate.Text = "Создать";
buttonCreate.UseVisualStyleBackColor = true;
buttonCreate.Click += buttonCreate_Click;
//
// buttonRight
//
buttonRight.BackgroundImage = (Image)resources.GetObject("buttonRight.BackgroundImage");
buttonRight.Location = new Point(778, 390);
buttonRight.Name = "buttonRight";
buttonRight.Size = new Size(50, 50);
buttonRight.TabIndex = 12;
buttonRight.UseVisualStyleBackColor = true;
buttonRight.Click += buttonMove_Click;
//
// buttonLeft
//
buttonLeft.BackgroundImage = (Image)resources.GetObject("buttonLeft.BackgroundImage");
buttonLeft.Location = new Point(666, 390);
buttonLeft.Name = "buttonLeft";
buttonLeft.Size = new Size(50, 50);
buttonLeft.TabIndex = 11;
buttonLeft.UseVisualStyleBackColor = true;
buttonLeft.Click += buttonMove_Click;
//
// buttonDown
//
buttonDown.BackgroundImage = (Image)resources.GetObject("buttonDown.BackgroundImage");
buttonDown.Location = new Point(722, 390);
buttonDown.Name = "buttonDown";
buttonDown.Size = new Size(50, 50);
buttonDown.TabIndex = 10;
buttonDown.UseVisualStyleBackColor = true;
buttonDown.Click += buttonMove_Click;
//
// buttonUp
//
buttonUp.BackgroundImage = (Image)resources.GetObject("buttonUp.BackgroundImage");
buttonUp.Location = new Point(722, 334);
buttonUp.Name = "buttonUp";
buttonUp.Size = new Size(50, 50);
buttonUp.TabIndex = 9;
buttonUp.UseVisualStyleBackColor = true;
buttonUp.Click += buttonMove_Click;
//
// FormSelfPropelledArtilleryUnit
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 450);
ClientSize = new Size(884, 461);
Controls.Add(buttonRight);
Controls.Add(buttonLeft);
Controls.Add(buttonDown);
Controls.Add(buttonUp);
Controls.Add(buttonCreate);
Controls.Add(pictureBoxUsta);
Name = "FormSelfPropelledArtilleryUnit";
Text = "Form1";
StartPosition = FormStartPosition.CenterScreen;
Text = "SelfPropelledArtilleryUnit";
((System.ComponentModel.ISupportInitialize)pictureBoxUsta).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
private PictureBox pictureBoxUsta;
private Button buttonCreate;
private Button buttonRight;
private Button buttonLeft;
private Button buttonDown;
private Button buttonUp;
}
}

View File

@ -2,9 +2,69 @@ namespace SelfPropelledArtilleryUnit
{
public partial class FormSelfPropelledArtilleryUnit : Form
{
private DrawningUsta? _drawningUsta;
public FormSelfPropelledArtilleryUnit()
{
InitializeComponent();
}
private void Draw()
{
if (_drawningUsta == null)
{
return;
}
Bitmap bmp = new(pictureBoxUsta.Width,
pictureBoxUsta.Height);
Graphics gr = Graphics.FromImage(bmp);
_drawningUsta.DrawTransport(gr);
pictureBoxUsta.Image = bmp;
}
/// <summary>
/// Îáðàáîòêà íàæàòèÿ êíîïêè "Ñîçäàòü"
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void buttonCreate_Click(object sender, EventArgs e)
{
Random random = new();
_drawningUsta = new DrawningUsta();
_drawningUsta.Init(random.Next(100, 300), random.Next(1000, 3000),
Color.FromArgb(30, 89, 69),
Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)),
Convert.ToBoolean(random.Next(0, 2)),
Convert.ToBoolean(random.Next(0, 2)),
pictureBoxUsta.Width,
pictureBoxUsta.Height);
_drawningUsta.SetPosition(random.Next(10, 100), random.Next(10, 100));
Draw();
}
private void buttonMove_Click(object sender, EventArgs e)
{
if (_drawningUsta == null)
{
return;
}
string name = ((Button)sender)?.Name ?? string.Empty;
switch (name)
{
case "buttonUp":
_drawningUsta.MoveTransport(DirectionType.Up);
break;
case "buttonDown":
_drawningUsta.MoveTransport(DirectionType.Down);
break;
case "buttonLeft":
_drawningUsta.MoveTransport(DirectionType.Left);
break;
case "buttonRight":
_drawningUsta.MoveTransport(DirectionType.Right);
break;
}
Draw();
}
}
}

View File

@ -117,4 +117,63 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="buttonRight.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
DAAACwwBP0AiyAAAAhhJREFUaEPtmb2KWkEYhmUJaIKEgIUEvInU/qBhQVAQRFKk2GKbXWSbSIqQJneQ
IhdgrsFehLQBscgt5AIEf0DXZGffF84ZJus5o+se43wwDzyFxRm+h/PjGU15PB6Px8Jr+Ba+g+/hSyiO
r/AvVIZ/4A0Uwzk0A1QulzM/f4Ai+Az14PV6Xa1WK9VsNsXFfIF66E6no8h6vVatVsuM+QidJjKESIuJ
DSGSYqwhRErMzhAiIWavEJJUzCv4Df6CU7iCtwn4zxehLYTw0dxoNMyYRz2an8Gf0FzgKPZ6vWDkeJ4S
w3cgfWA2m1WDwUCNx+NEnUwmarPZBOPaOTTmGuqDSqVSsNxpOSSmC/UBlUolWOr0PPYB4GwIiTgzvIIi
cTqEPIjZwMj9jPMhZLFYqEKhEM7Jt+otRISQdrsdzvkdbiEiZDqdqnw+H84ZedM7HzKfz1W5XA5nXMMM
3MLpkAcRd5A/YETibAhv8Gq1akZcwliuoA4pFovBMqcl4kxcQCsVqEMymYzq9/tqOBwm6mg0UsvlMhjT
ziER5AyOoI45lt1uNxg1nkMjQp5DboJ+wN9wBpcJyD2JDtm1H3lqxDHZe4fIy65Wq5kR1hv7f7NXiOsR
ZGeIhAhiDZESQWJDJEWQyBBpEeQT1CEcfjabOfuItVGGOoSm02lxESHczfHV2wziZ/4FJ44X8A0sBvK1
yOPxeDxSSaXuAf56EEyW1ZwcAAAAAElFTkSuQmCC
</value>
</data>
<data name="buttonLeft.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
DAAACwwBP0AiyAAAAgdJREFUaEPtmD1uGkEYholTgEPhiIqGQ7gNPxJOAaJDKIULtw5OGqpEkWxfwE0O
QOEbcACM5DIFosgVcgAkfgRGib+872pBm8myzCJwZpx5pKdAYmAfZpmd3YTD4XD8txzBU/gOnsAstI6P
8CeUgL/gDbSGFvQOPpPJBEOWvoXGs4qo1Woyn8+lUqmoIV+g0fB0eoRSrVZlNpsJaTQaasg1NJbQCGJT
yNoIYktIZASxIeQDjIwgpodoRRCTQ/5aYqMICeGFcbED53AIv8OvkDsJbWJFkFarpYbsy2/wJdxI7Aiy
WCxkMBhIv9/fqZ1OR9LptBpThpFsFbFvCoWCGvIerkX7j/3UlEolNeQChsJC700mzcQS3ZDX0NuKmxhB
dEMuoeRyOZlMJv5Qs9ANuYVSr9f9YeahG/IJSjableFw6A81C92QV5BXUCkWizIej/3h5qAbQvjgwFt6
TYyJE0L4JMSLyefzMhqN/I/598QNIWfQuJnhD8tjCngON7JVzHQ6lV6vJ91ud6e2221JpVJqSAFqETum
2WyqX7Yv7+ALqE2smJD7Ea6E0x04gj/gPbyChzA22guADffsWjE2hJCNMbaEkMgYm0LI2hjbQkhojI0h
5I+lmTHlclkN+QytYBWTTCbVCJqH1sDT7AEGA/jamtkIcgC593kDjyHvbxwOh8PxnEkkfgN6PQ5e0uzk
oAAAAABJRU5ErkJggg==
</value>
</data>
<data name="buttonDown.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
DAAACwwBP0AiyAAAAchJREFUaEPtmLFKM0EURqN1Kn0SMSJxSUjeQQsRUZsEku7HF9BafAF9AZukzANo
GUXtQwStVRLC32S9fneZATET3Z3NzOzKHDggiXPvPaUWPH+UVXgJn+BrTPl3L+AKzATL8AaSpteQZzhn
HaoOTOIadM4OVB2XxG3onGNIxWKRut0u9fv9WHY6negNv4X/eJBrziBVq1VKCr/ht2KGc84h1Wo1cV58
+A2/FTOc40N8iCF8iA8xhA/xIYbwIT7EED7EhxgiFyH8341T+A7lUqUpQ37yDZ7AJajNIVQNn9FgiPQA
anMFVUNntBDCt2hzC1VDZ2w2m+K8+DQaDeWsOfIt2rxAarfbNBgM5jocDikMQ3FefKbTafRWNVPaarVk
yDMfpMs9pHK5TOPxWKy3B+/k3XwDvOODdAngB6RKpWI1hnfxTt4tbtiCqdiFUUwQBDQajcQqc0wmE6rX
618jjuBCsBZjMkJiPMZGhMRYjM0IycJjXERIFhbjMkKSOiYLERLtmCxFSBLHZDFCEjsmyxGSX2PyECGZ
G5OnCMkejGJKpRL1er1I/pk/E9+l+mvPJvswivlmCPm7XLEJH+F/4QPcgB5PfigUPgEBKRF/8g21wAAA
AABJRU5ErkJggg==
</value>
</data>
<data name="buttonUp.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
DAAACwwBP0AiyAAAAcJJREFUaEPtmcFKAkEYx+0m9Sz1BguKh6wFL0FdRPRaFEUPUYfoBfTcKxT4BC7a
oc4dos5dXSGa/t8yH0TO1jjr7Iw1P/iBrM433++oVgL/iBg+w3cpvd6FK8Up/IDim/SM3lsJjmEWUa/X
RZIkYjQaZa/pmfQMes0hzCKazaaYTqeCmc1motVqfY05h16SG8GsQsyvEYzPMdoRjI8xC0cwPsUcQaMI
xoeYwhGMy5ilRTAuYpYewZQZYy2CKSPGegRjM6a0CMZGzA7MhsVxLNI0lVfZh+6iO/l+uA2NeYSi0WiU
GsHQnXQ37QAfaCFTXqHo9XpiPB7nOplMjELpDJ1VzWS73S6HvNBCpiSQB/1op9OR6+nTbreVs3KkXYy5
gaqhc9ZqNbmePnRGNStH2sWYA6gaOmcJIfuwECfwCb7lmMKiITRDNZuku+nrs3WuYdEQmuGcEBJCLBFC
QoglQkgIsUQICSGWCCEhxBJ/JuQKiiiK5Hr60Bk6K2c4h/5uFtVqVQwGAzEcDrXs9/vZGTorZzhnD/JC
ptIM52xB1XKLuAmdswbvoGpBHW8hzfCCDXgJ7yH9fKMjffYCrsNAwE8qlU+yNBGf6frdkAAAAABJRU5E
rkJggg==
</value>
</data>
</root>

View File

@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Этот код создан программой.
// Исполняемая версия:4.0.30319.42000
//
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
// повторной генерации кода.
// </auto-generated>
//------------------------------------------------------------------------------
namespace SelfPropelledArtilleryUnit.Properties {
using System;
/// <summary>
/// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д.
/// </summary>
// Этот класс создан автоматически классом StronglyTypedResourceBuilder
// с помощью такого средства, как ResGen или Visual Studio.
// Чтобы добавить или удалить член, измените файл .ResX и снова запустите ResGen
// с параметром /str или перестройте свой проект VS.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SelfPropelledArtilleryUnit.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Перезаписывает свойство CurrentUICulture текущего потока для всех
/// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,120 @@
<?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>
</root>