diff --git a/solution/lab1/DirectionType.cs b/solution/lab1/DirectionType.cs new file mode 100644 index 0000000..89efc51 --- /dev/null +++ b/solution/lab1/DirectionType.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace lab1; + +public enum DirectionType +{ + /// + /// Вверх + /// + Up = 1, + /// + /// Вниз + /// + Down = 2, + /// + /// Влево + /// + Left = 3, + /// + /// Вправо + /// + Right = 4 +} diff --git a/solution/lab1/DrawningEntityFighter.cs b/solution/lab1/DrawningEntityFighter.cs new file mode 100644 index 0000000..82af208 --- /dev/null +++ b/solution/lab1/DrawningEntityFighter.cs @@ -0,0 +1,241 @@ +namespace lab1; + +/// +/// Класс, отвечающий за прорисовку и перемещение объекта-сущности +/// +public class DrawningEntityFighter +{ + /// + /// Класс-сущность + /// + public EntityFighter? EntityFighter { get; private set; } + + /// + /// Ширина окна + /// + private int? _pictureWidth; + + /// + /// Высота окна + /// + private int? _pictureHeight; + + /// + /// Левая координата прорисовки истребителя + /// + private int? _startPosX; + + /// + /// Верхняя координата прорисовки истребителя + /// + private int? _startPosY; + + /// + /// Ширина прорисовки истребителя + /// + private readonly int _drawningFighterWidth = 91; + + /// + /// Высота прорисовки истребителя + /// + private readonly int _drawningFighterHeight = 65; + + /// + /// Инициализация свойств + /// + /// Скорость + /// >Вес истребителя + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия ракет + /// Признак наличия доп. крыльев + public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool rockets, bool extraWings) + { + EntityFighter = new EntityFighter(); + EntityFighter.Init(speed, weight, bodyColor, additionalColor, rockets, extraWings); + _pictureWidth = null; + _pictureHeight = null; + _startPosX = null; + _startPosY = null; + } + + /// + /// Установка границ поля + /// + /// Ширина поля + /// Высота поля + /// true - границы заданы, false - проверка не пройдена, нельзя разместить объект в этих размерах + public bool SetPictureSize(int width, int height) + { + if (width >= _drawningFighterWidth && height >= _drawningFighterHeight) + { + _pictureWidth = width; + _pictureHeight = height; + if (_startPosX.HasValue && _startPosY.HasValue) + { + SetPosition(_startPosX.Value, _startPosY.Value); + } + return true; + } + + + return false; + } + + /// + /// Установка позиции + /// + /// Координата X + /// Координата Y + public void SetPosition(int x, int y) + { + if (!_pictureHeight.HasValue || !_pictureWidth.HasValue) + { + return; + } + if (x < 0) + { + x = 0; + } + else if (x > _pictureWidth.Value - _drawningFighterWidth) + { + x = _pictureWidth.Value - _drawningFighterWidth; + } + + if (y < 0) + { + y = 0; + } + else if (y > _pictureHeight.Value - _drawningFighterHeight) + { + y = _pictureHeight.Value - _drawningFighterHeight; + } + + _startPosX = x; + _startPosY = y; + } + + + /// + /// Изменение направления перемещения + /// + /// Направление + /// true - перемещене выполнено, false - перемещение невозможно + public bool MoveTransport(DirectionType direction) + { + if (EntityFighter == null || !_startPosX.HasValue || !_startPosY.HasValue) + { + return false; + } + switch (direction) + { + //влево + case DirectionType.Left: + if (_startPosX.Value - EntityFighter.Step > 0) + { + _startPosX -= (int)EntityFighter.Step; + } + return true; + //Вверх + case DirectionType.Up: + if (_startPosY.Value - EntityFighter.Step > 0) + { + _startPosY -= (int)EntityFighter.Step; + } + return true; + + //Вправо + case DirectionType.Right: + if (_startPosX.Value + EntityFighter.Step + _drawningFighterWidth < _pictureWidth) + { + _startPosX += (int)EntityFighter.Step; + } + return true; + //Вниз + case DirectionType.Down: + if (_startPosY.Value + EntityFighter.Step + _drawningFighterHeight < _pictureHeight) + { + _startPosY += (int)EntityFighter.Step; + } + return true; + default: + return false; + } + } + + /// + /// Прорисовка объекта + /// + /// + public void DrawTransport(Graphics g) + { + if (EntityFighter == null || !_startPosX.HasValue || !_startPosY.HasValue) + { + return; + } + Pen pen = new(Color.Black); + Brush additionalBrush = new SolidBrush(EntityFighter.AdditionalColor); + Brush BodyBrush = new SolidBrush(EntityFighter.BodyColor); + Brush CraneBrush = new SolidBrush(EntityFighter.AdditionalColor); + + + //корпус + g.FillRectangle(BodyBrush, _startPosX.Value + 10, _startPosY.Value + 30, 62, 12); + g.DrawRectangle(pen, _startPosX.Value + 10, _startPosY.Value + 30, 62, 12); + g.FillRectangle(BodyBrush, _startPosX.Value + 22, _startPosY.Value + 16, 4, 15); + g.DrawRectangle(pen, _startPosX.Value + 22, _startPosY.Value + 16, 4, 14); + g.FillRectangle(BodyBrush, _startPosX.Value + 37, _startPosY.Value + 1, 5, 30); + g.DrawRectangle(pen, _startPosX.Value + 37, _startPosY.Value + 1, 5, 30); + + //стекло + g.FillRectangle(additionalBrush, _startPosX.Value + 52, _startPosY.Value + 14, 21, 16); + g.DrawRectangle(pen, _startPosX.Value + 52, _startPosY.Value + 14, 20, 16); + + //гусеницы + g.DrawLine(pen, _startPosX.Value + 8, _startPosY.Value + 42, _startPosX.Value + 10, _startPosY.Value + 42); + g.DrawLine(pen, _startPosX.Value + 7, _startPosY.Value + 43, _startPosX.Value + 7, _startPosY.Value + 53); + g.DrawLine(pen, _startPosX.Value + 8, _startPosY.Value + 54, _startPosX.Value + 12, _startPosY.Value + 54); + g.DrawLine(pen, _startPosX.Value + 13, _startPosY.Value + 55, _startPosX.Value + 69, _startPosY.Value + 55); + g.DrawLine(pen, _startPosX.Value + 70, _startPosY.Value + 54, _startPosX.Value + 73, _startPosY.Value + 54); + g.DrawLine(pen, _startPosX.Value + 74, _startPosY.Value + 53, _startPosX.Value + 74, _startPosY.Value + 43); + g.DrawLine(pen, _startPosX.Value + 71, _startPosY.Value + 42, _startPosX.Value + 73, _startPosY.Value + 42); + + //колеса + g.FillEllipse(BodyBrush, _startPosX.Value + 10, _startPosY.Value + 44, 9, 9); + g.DrawEllipse(pen, _startPosX.Value + 10, _startPosY.Value + 44, 9, 9); + g.FillEllipse(BodyBrush, _startPosX.Value + 63, _startPosY.Value + 44, 9, 9); + g.DrawEllipse(pen, _startPosX.Value + 63, _startPosY.Value + 44, 9, 9); + + g.FillEllipse(BodyBrush, _startPosX.Value + 25, _startPosY.Value + 48, 6, 6); + g.DrawEllipse(pen, _startPosX.Value + 25, _startPosY.Value + 48, 6, 6); + g.FillEllipse(BodyBrush, _startPosX.Value + 38, _startPosY.Value + 48, 6, 6); + g.DrawEllipse(pen, _startPosX.Value + 38, _startPosY.Value + 48, 6, 6); + g.FillEllipse(BodyBrush, _startPosX.Value + 50, _startPosY.Value + 48, 6, 6); + g.DrawEllipse(pen, _startPosX.Value + 50, _startPosY.Value + 48, 6, 6); + + g.FillEllipse(BodyBrush, _startPosX.Value + 33, _startPosY.Value + 44, 4, 4); + g.DrawEllipse(pen, _startPosX.Value + 33, _startPosY.Value + 44, 4, 4); + g.FillEllipse(BodyBrush, _startPosX.Value + 45, _startPosY.Value + 44, 4, 4); + g.DrawEllipse(pen, _startPosX.Value + 45, _startPosY.Value + 44, 4, 4); + + if (EntityFighter.Kovsh) + { + + //ковш + g.DrawRectangle(pen, _startPosX.Value - 2, _startPosY.Value + 37, 8, 15); + g.FillRectangle(CraneBrush, _startPosX.Value - 2, _startPosY.Value + 37, 8, 15); + g.DrawRectangle(pen, _startPosX.Value - -6, _startPosY.Value + 37, 4, 1); + + } + + //противовес + if (EntityFighter.Otval) + { + g.DrawRectangle(pen, _startPosX.Value + 73, _startPosY.Value + 37, 17, 1); + g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value + 37, 1, 17); + + + } + } + +} diff --git a/solution/lab1/EntityFighter.cs b/solution/lab1/EntityFighter.cs new file mode 100644 index 0000000..ecd7383 --- /dev/null +++ b/solution/lab1/EntityFighter.cs @@ -0,0 +1,60 @@ + +namespace lab1; +/// +/// Класс-сущность "Истребитель" +/// + +public class EntityFighter +{ + /// + /// Скорость + /// + public int Speed { get; set; } + /// + /// Вес + /// + public double Weight { get; set; } + /// + /// Основной цвет + /// + public Color BodyColor { get; private set; } + /// + /// Дополнительный цвет (для опциональных элементов) + /// + public Color AdditionalColor { get; private set; } + /// + /// Признак (опция) наличия ракет + /// + public bool Kovsh { get; private set; } + /// + /// Признак (опция) наличия доп. крыльев + /// + public bool Otval { get; private set; } + /// + /// Шаг перемещения истребителя + /// + public double Step => Speed * 100 / Weight; + /// + /// Инициализация полей объекта-класса истребителя + /// + /// Скорость + /// >Вес истребителя + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия ракет + /// Признак наличия доп. крыльев + + public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool rockets, bool extraWings) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + Kovsh = rockets; + Otval = extraWings; + + } + + +} + diff --git a/solution/lab1/Form1.Designer.cs b/solution/lab1/Form1.Designer.cs deleted file mode 100644 index 233ce41..0000000 --- a/solution/lab1/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace lab1 -{ - partial class Form1 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "Form1"; - } - - #endregion - } -} \ No newline at end of file diff --git a/solution/lab1/Form1.cs b/solution/lab1/Form1.cs deleted file mode 100644 index 9c1284d..0000000 --- a/solution/lab1/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace lab1 -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/solution/lab1/FormFighter.Designer.cs b/solution/lab1/FormFighter.Designer.cs new file mode 100644 index 0000000..3a27286 --- /dev/null +++ b/solution/lab1/FormFighter.Designer.cs @@ -0,0 +1,139 @@ +namespace lab1 +{ + partial class FormFighter + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + pictureBoxFighter = new PictureBox(); + buttonCreate = new Button(); + buttonLeft = new Button(); + buttonDown = new Button(); + buttonUp = new Button(); + buttonRight = new Button(); + ((System.ComponentModel.ISupportInitialize)pictureBoxFighter).BeginInit(); + SuspendLayout(); + // + // pictureBoxFighter + // + pictureBoxFighter.Dock = DockStyle.Fill; + pictureBoxFighter.Location = new Point(0, 0); + pictureBoxFighter.Name = "pictureBoxFighter"; + pictureBoxFighter.Size = new Size(1015, 584); + pictureBoxFighter.TabIndex = 0; + pictureBoxFighter.TabStop = false; + // + // buttonCreate + // + buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + buttonCreate.Location = new Point(12, 538); + buttonCreate.Name = "buttonCreate"; + buttonCreate.Size = new Size(112, 34); + buttonCreate.TabIndex = 1; + buttonCreate.Text = "создать"; + buttonCreate.UseVisualStyleBackColor = true; + buttonCreate.Click += buttonCreate_Click_1; + // + // buttonLeft + // + buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonLeft.BackColor = SystemColors.Control; + buttonLeft.BackgroundImage = Properties.Resources.arrowLeft; + buttonLeft.BackgroundImageLayout = ImageLayout.Stretch; + buttonLeft.Location = new Point(796, 505); + buttonLeft.Name = "buttonLeft"; + buttonLeft.Size = new Size(52, 52); + buttonLeft.TabIndex = 2; + buttonLeft.UseVisualStyleBackColor = false; + buttonLeft.Click += buttonMove_Click; + // + // buttonDown + // + buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonDown.BackColor = SystemColors.Control; + buttonDown.BackgroundImage = Properties.Resources.arrowDown; + buttonDown.BackgroundImageLayout = ImageLayout.Stretch; + buttonDown.Location = new Point(854, 505); + buttonDown.Name = "buttonDown"; + buttonDown.Size = new Size(52, 52); + buttonDown.TabIndex = 3; + buttonDown.UseVisualStyleBackColor = false; + buttonDown.Click += buttonMove_Click; + // + // buttonUp + // + buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonUp.BackColor = SystemColors.Control; + buttonUp.BackgroundImage = Properties.Resources.arrowUp; + buttonUp.BackgroundImageLayout = ImageLayout.Stretch; + buttonUp.Location = new Point(854, 447); + buttonUp.Name = "buttonUp"; + buttonUp.Size = new Size(52, 52); + buttonUp.TabIndex = 4; + buttonUp.UseVisualStyleBackColor = false; + buttonUp.Click += buttonMove_Click; + // + // buttonRight + // + buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonRight.BackColor = SystemColors.Control; + buttonRight.BackgroundImage = Properties.Resources.arrowRight; + buttonRight.BackgroundImageLayout = ImageLayout.Stretch; + buttonRight.Location = new Point(912, 505); + buttonRight.Name = "buttonRight"; + buttonRight.Size = new Size(52, 52); + buttonRight.TabIndex = 5; + buttonRight.UseVisualStyleBackColor = false; + buttonRight.Click += buttonMove_Click; + // + // FormFighter + // + AutoScaleDimensions = new SizeF(10F, 25F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(1015, 584); + Controls.Add(buttonRight); + Controls.Add(buttonUp); + Controls.Add(buttonDown); + Controls.Add(buttonLeft); + Controls.Add(buttonCreate); + Controls.Add(pictureBoxFighter); + Name = "FormFighter"; + Text = "Истребитель"; + Load += FormFighter_Load; + ((System.ComponentModel.ISupportInitialize)pictureBoxFighter).EndInit(); + ResumeLayout(false); + } + + #endregion + + private PictureBox pictureBoxFighter; + private Button buttonCreate; + private Button buttonLeft; + private Button buttonDown; + private Button buttonUp; + private Button buttonRight; + } +} \ No newline at end of file diff --git a/solution/lab1/FormFighter.cs b/solution/lab1/FormFighter.cs new file mode 100644 index 0000000..591cf7d --- /dev/null +++ b/solution/lab1/FormFighter.cs @@ -0,0 +1,90 @@ +using lab1; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace lab1 +{ + + + public partial class FormFighter : Form + { + private DrawningEntityFighter? _drawningFighter; + public FormFighter() + { + InitializeComponent(); + } + + private void Draw() + { + if (_drawningFighter == null) + { + return; + } + + Bitmap bmp = new(pictureBoxFighter.Width, pictureBoxFighter.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawningFighter.DrawTransport(gr); + pictureBoxFighter.Image = bmp; + } + + + + private void buttonMove_Click(object sender, EventArgs e) + { + if (_drawningFighter == null) + { + return; + } + + string name = ((Button)sender)?.Name ?? string.Empty; + bool result = false; + switch (name) + { + case "buttonUp": + result = _drawningFighter.MoveTransport(DirectionType.Up); + break; + case "buttonDown": + result = _drawningFighter.MoveTransport(DirectionType.Down); + break; + case "buttonLeft": + result = _drawningFighter.MoveTransport(DirectionType.Left); + break; + case "buttonRight": + result = _drawningFighter.MoveTransport(DirectionType.Right); + break; + } + + if (result) + { + Draw(); + } + } + + private void buttonCreate_Click_1(object sender, EventArgs e) + { + { + Random random = new(); + _drawningFighter = new DrawningEntityFighter(); + _drawningFighter.Init(random.Next(100, 300), random.Next(1200, 3000), + Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)), + 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))); + _drawningFighter.SetPictureSize(pictureBoxFighter.Width, pictureBoxFighter.Height); + _drawningFighter.SetPosition(random.Next(10, 100), random.Next(10, 100)); + Draw(); + } + } + + private void FormFighter_Load(object sender, EventArgs e) + { + + } + } +} diff --git a/solution/lab1/Form1.resx b/solution/lab1/FormFighter.resx similarity index 93% rename from solution/lab1/Form1.resx rename to solution/lab1/FormFighter.resx index 1af7de1..af32865 100644 --- a/solution/lab1/Form1.resx +++ b/solution/lab1/FormFighter.resx @@ -1,17 +1,17 @@  - diff --git a/solution/lab1/Program.cs b/solution/lab1/Program.cs index 870bc39..d57203a 100644 --- a/solution/lab1/Program.cs +++ b/solution/lab1/Program.cs @@ -11,7 +11,7 @@ namespace lab1 // To customize application configuration such as set high DPI settings or default font, // see https://aka.ms/applicationconfiguration. ApplicationConfiguration.Initialize(); - Application.Run(new Form1()); + Application.Run(new FormFighter()); } } } \ No newline at end of file diff --git a/solution/lab1/Properties/Resources.Designer.cs b/solution/lab1/Properties/Resources.Designer.cs new file mode 100644 index 0000000..92369a9 --- /dev/null +++ b/solution/lab1/Properties/Resources.Designer.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace lab1.Properties { + using System; + + + /// + /// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д. + /// + // Этот класс создан автоматически классом 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() { + } + + /// + /// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом. + /// + [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("lab1.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Перезаписывает свойство CurrentUICulture текущего потока для всех + /// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap arrowDown { + get { + object obj = ResourceManager.GetObject("arrowDown", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap arrowLeft { + get { + object obj = ResourceManager.GetObject("arrowLeft", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap arrowRight { + get { + object obj = ResourceManager.GetObject("arrowRight", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap arrowUp { + get { + object obj = ResourceManager.GetObject("arrowUp", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/solution/lab1/Properties/Resources.resx b/solution/lab1/Properties/Resources.resx new file mode 100644 index 0000000..293419e --- /dev/null +++ b/solution/lab1/Properties/Resources.resx @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + ..\Resources\arrowDown.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowLeft.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowRight.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowUp.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/solution/lab1/Resources/arrowDown.jpg b/solution/lab1/Resources/arrowDown.jpg new file mode 100644 index 0000000..f21002e Binary files /dev/null and b/solution/lab1/Resources/arrowDown.jpg differ diff --git a/solution/lab1/Resources/arrowLeft.jpg b/solution/lab1/Resources/arrowLeft.jpg new file mode 100644 index 0000000..61b8dae Binary files /dev/null and b/solution/lab1/Resources/arrowLeft.jpg differ diff --git a/solution/lab1/Resources/arrowRight.jpg b/solution/lab1/Resources/arrowRight.jpg new file mode 100644 index 0000000..b440197 Binary files /dev/null and b/solution/lab1/Resources/arrowRight.jpg differ diff --git a/solution/lab1/Resources/arrowUp.jpg b/solution/lab1/Resources/arrowUp.jpg new file mode 100644 index 0000000..e630cea Binary files /dev/null and b/solution/lab1/Resources/arrowUp.jpg differ diff --git a/solution/lab1/lab1.csproj b/solution/lab1/lab1.csproj index e1a0735..244387d 100644 --- a/solution/lab1/lab1.csproj +++ b/solution/lab1/lab1.csproj @@ -8,4 +8,19 @@ enable + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + \ No newline at end of file