diff --git a/SailBoat/SailBoat.sln b/SailBoat/SailBoat.sln index 039979c..339a223 100644 --- a/SailBoat/SailBoat.sln +++ b/SailBoat/SailBoat.sln @@ -1,9 +1,9 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 -VisualStudioVersion = 17.6.33717.318 +VisualStudioVersion = 17.6.33829.357 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SailBoat", "SailBoat\SailBoat.csproj", "{2DF6420E-A429-41FF-975D-9CC7F0635749}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SailBoat", "SailBoat\SailBoat.csproj", "{8BDA67FC-B991-4A0A-B505-B10C27DB53C7}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -11,15 +11,15 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {2DF6420E-A429-41FF-975D-9CC7F0635749}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2DF6420E-A429-41FF-975D-9CC7F0635749}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2DF6420E-A429-41FF-975D-9CC7F0635749}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2DF6420E-A429-41FF-975D-9CC7F0635749}.Release|Any CPU.Build.0 = Release|Any CPU + {8BDA67FC-B991-4A0A-B505-B10C27DB53C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8BDA67FC-B991-4A0A-B505-B10C27DB53C7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8BDA67FC-B991-4A0A-B505-B10C27DB53C7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8BDA67FC-B991-4A0A-B505-B10C27DB53C7}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {3BCBDA82-2EB8-4315-9C43-B85A3FD48F29} + SolutionGuid = {1FD39AE3-D95F-4D22-9D86-54C16EB26DDB} EndGlobalSection EndGlobal diff --git a/SailBoat/SailBoat/Direction.cs b/SailBoat/SailBoat/Direction.cs new file mode 100644 index 0000000..ff00996 --- /dev/null +++ b/SailBoat/SailBoat/Direction.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SailBoat +{ + public enum DirectionType + { + Up = 1, + + Down = 2, + + Left = 3, + + Right = 4 + } +} diff --git a/SailBoat/SailBoat/DrawningSailBoat.cs b/SailBoat/SailBoat/DrawningSailBoat.cs new file mode 100644 index 0000000..8b54845 --- /dev/null +++ b/SailBoat/SailBoat/DrawningSailBoat.cs @@ -0,0 +1,113 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SailBoat +{ + internal class DrawningSailBoat + { + public EntitySailBoat? EntitySailBoat { get; private set; } + + private int _pictureWidth; + + private int _pictureHeight; + + private int _startPosX; + + private int _startPosY; + + private readonly int _boatWidth = 180; + + private readonly int _boatHeight = 125; + public bool Init(int speed, double weight, Color bodyColor, Color additionalColor, bool sail, bool rainforcedBody, int width, int height) + { + if (width < _boatWidth) { return false; } + if (height < _boatHeight) { return false; } + + _pictureWidth = width; + _pictureHeight = height; + EntitySailBoat = new EntitySailBoat(); + EntitySailBoat.Init(speed, weight, bodyColor, additionalColor, sail, rainforcedBody); + return true; + } + public void SetPosition(int x, int y) + { + if (x < 0) { x = 0; } + else if (x > _pictureWidth) { x = _pictureWidth; } + if (y < 0) { y = 0; } + else if (y > _pictureHeight) { y = _pictureHeight; } + _startPosX = x; + _startPosY = y; + } + public void MoveTransport(DirectionType direction) + { + if (EntitySailBoat == null) return; + switch (direction) + { + case DirectionType.Left: + if (_startPosX - EntitySailBoat.Step > 0) + { + _startPosX -= (int)EntitySailBoat.Step; + } + break; + case DirectionType.Right: + if (_startPosX + _boatWidth + EntitySailBoat.Step < _pictureWidth) + { + _startPosX += (int)EntitySailBoat.Step; + } + break; + case DirectionType.Up: + if (_startPosY - EntitySailBoat.Step > 0) + { + _startPosY -= (int)EntitySailBoat.Step; + } + break; + case DirectionType.Down: + if (_startPosY + _boatHeight + EntitySailBoat.Step < _pictureHeight) + { + _startPosY += (int)EntitySailBoat.Step; + } + break; + } + } + public void DrawTransport(Graphics g) + { + if (EntitySailBoat == null) return; + Pen pen = new(Color.Black); + Brush additionalBrush = new SolidBrush(EntitySailBoat.AdditionalColor); + + //границы корабля + g.DrawLine(pen, _startPosX + 10, _startPosY + 60, _startPosX + 110, _startPosY + 60); + g.DrawLine(pen, _startPosX + 110, _startPosY + 60, _startPosX + 180, _startPosY + 90); + g.DrawLine(pen, _startPosX + 180, _startPosY + 90, _startPosX + 110, _startPosY + 120); + g.DrawLine(pen, _startPosX + 110, _startPosY + 120, _startPosX + 10, _startPosY + 120); + g.DrawLine(pen, _startPosX + 10, _startPosY + 120, _startPosX + 10, _startPosY + 60); + g.FillEllipse(additionalBrush, _startPosX + 15, _startPosY + 65, 95, 50); + g.DrawEllipse(pen, _startPosX + 15, _startPosY + 65, 95, 50); + + if (EntitySailBoat.RainforcedBody) + { + Brush rainforcedBody = new SolidBrush(Color.DarkGray); + g.FillRectangle(rainforcedBody, _startPosX + 2, _startPosY + 65, 10, 50); + g.DrawRectangle(pen, _startPosX + 2, _startPosY + 65, 10, 50); + g.FillRectangle(rainforcedBody, _startPosX + 15, _startPosY + 53, 90, 10); + g.DrawRectangle(pen, _startPosX + 15, _startPosY + 53, 90, 10); + g.FillRectangle(rainforcedBody, _startPosX + 15, _startPosY + 118, 90, 10); + g.DrawRectangle(pen, _startPosX + 15, _startPosY + 118, 90, 10); + } + + if (EntitySailBoat.Sail) + { + Brush mast = new SolidBrush(Color.Brown); + g.FillRectangle(mast, _startPosX + 60, _startPosY , 4, 90); + g.DrawRectangle(pen, _startPosX + 60, _startPosY , 4, 90); + g.DrawLine(pen, _startPosX + 25, _startPosY + 20, _startPosX + 100, _startPosY); + g.DrawLine(pen, _startPosX + 100, _startPosY, _startPosX + 100, _startPosY + 50); + g.DrawLine(pen, _startPosX + 25, _startPosY + 70, _startPosX + 100, _startPosY + 50); + g.DrawLine(pen, _startPosX + 25, _startPosY + 70, _startPosX + 25, _startPosY + 20); + } + } + } +} diff --git a/SailBoat/SailBoat/EntitySailBoat.cs b/SailBoat/SailBoat/EntitySailBoat.cs new file mode 100644 index 0000000..3c4f407 --- /dev/null +++ b/SailBoat/SailBoat/EntitySailBoat.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SailBoat +{ + internal class EntitySailBoat + { + public int Speed { get; private set; } + + public double Weight { get; private set; } + + public Color BodyColor { get; private set; } + + public Color AdditionalColor { get; private set; } + + public bool Sail { get; private set; } + + public bool RainforcedBody { get; private set; } + + public double Step => (double)Speed * 100 / Weight; + + public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool sail, bool rainforcedBody) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + Sail = sail; + RainforcedBody = rainforcedBody; + } + } +} diff --git a/SailBoat/SailBoat/Form1.Designer.cs b/SailBoat/SailBoat/Form1.Designer.cs deleted file mode 100644 index fcc066a..0000000 --- a/SailBoat/SailBoat/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace SailBoat -{ - 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/SailBoat/SailBoat/Form1.cs b/SailBoat/SailBoat/Form1.cs deleted file mode 100644 index f05c268..0000000 --- a/SailBoat/SailBoat/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace SailBoat -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/SailBoat/SailBoat/FormSailBoat.Designer.cs b/SailBoat/SailBoat/FormSailBoat.Designer.cs new file mode 100644 index 0000000..5bac5aa --- /dev/null +++ b/SailBoat/SailBoat/FormSailBoat.Designer.cs @@ -0,0 +1,137 @@ +namespace SailBoat +{ + partial class FormSailBoat + { + /// + /// 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() + { + pictureBoxSailBoat = new PictureBox(); + buttonCreateSailBoat = new Button(); + buttonDown = new Button(); + buttonLeft = new Button(); + buttonUp = new Button(); + buttonRight = new Button(); + ((System.ComponentModel.ISupportInitialize)pictureBoxSailBoat).BeginInit(); + SuspendLayout(); + // + // pictureBoxSailBoat + // + pictureBoxSailBoat.Dock = DockStyle.Fill; + pictureBoxSailBoat.Location = new Point(0, 0); + pictureBoxSailBoat.Name = "pictureBoxSailBoat"; + pictureBoxSailBoat.Size = new Size(884, 461); + pictureBoxSailBoat.SizeMode = PictureBoxSizeMode.AutoSize; + pictureBoxSailBoat.TabIndex = 0; + pictureBoxSailBoat.TabStop = false; + // + // buttonCreateSailBoat + // + buttonCreateSailBoat.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + buttonCreateSailBoat.Location = new Point(12, 419); + buttonCreateSailBoat.Name = "buttonCreateSailBoat"; + buttonCreateSailBoat.Size = new Size(96, 30); + buttonCreateSailBoat.TabIndex = 3; + buttonCreateSailBoat.Text = "Создать"; + buttonCreateSailBoat.UseVisualStyleBackColor = true; + buttonCreateSailBoat.Click += buttonCreateSailBoat_Click; + // + // buttonDown + // + buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonDown.BackgroundImage = Properties.Resources.down; + buttonDown.BackgroundImageLayout = ImageLayout.Zoom; + buttonDown.Location = new Point(806, 419); + buttonDown.Name = "buttonDown"; + buttonDown.Size = new Size(30, 30); + buttonDown.TabIndex = 10; + buttonDown.UseVisualStyleBackColor = true; + buttonDown.Click += buttonMove_Click; + // + // buttonLeft + // + buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonLeft.BackgroundImage = Properties.Resources.left; + buttonLeft.BackgroundImageLayout = ImageLayout.Zoom; + buttonLeft.Location = new Point(770, 419); + buttonLeft.Name = "buttonLeft"; + buttonLeft.Size = new Size(30, 30); + buttonLeft.TabIndex = 9; + buttonLeft.UseVisualStyleBackColor = true; + buttonLeft.Click += buttonMove_Click; + // + // buttonUp + // + buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonUp.BackgroundImage = Properties.Resources.up; + buttonUp.BackgroundImageLayout = ImageLayout.Zoom; + buttonUp.Location = new Point(806, 383); + buttonUp.Name = "buttonUp"; + buttonUp.Size = new Size(30, 30); + buttonUp.TabIndex = 8; + buttonUp.UseVisualStyleBackColor = true; + buttonUp.Click += buttonMove_Click; + // + // buttonRight + // + buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonRight.BackgroundImage = Properties.Resources.right; + buttonRight.BackgroundImageLayout = ImageLayout.Zoom; + buttonRight.Location = new Point(842, 419); + buttonRight.Name = "buttonRight"; + buttonRight.Size = new Size(30, 30); + buttonRight.TabIndex = 7; + buttonRight.UseVisualStyleBackColor = true; + buttonRight.Click += buttonMove_Click; + // + // FormSailBoat + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(884, 461); + Controls.Add(buttonDown); + Controls.Add(buttonLeft); + Controls.Add(buttonUp); + Controls.Add(buttonRight); + Controls.Add(buttonCreateSailBoat); + Controls.Add(pictureBoxSailBoat); + Name = "FormSailBoat"; + StartPosition = FormStartPosition.CenterScreen; + Text = "Парусник"; + ((System.ComponentModel.ISupportInitialize)pictureBoxSailBoat).EndInit(); + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private PictureBox pictureBoxSailBoat; + private Button buttonCreateSailBoat; + private Button buttonDown; + private Button buttonLeft; + private Button buttonUp; + private Button buttonRight; + } +} \ No newline at end of file diff --git a/SailBoat/SailBoat/FormSailBoat.cs b/SailBoat/SailBoat/FormSailBoat.cs new file mode 100644 index 0000000..0beb2ce --- /dev/null +++ b/SailBoat/SailBoat/FormSailBoat.cs @@ -0,0 +1,49 @@ +namespace SailBoat +{ + public partial class FormSailBoat : Form + { + private DrawningSailBoat _drawningSailBoat; + public FormSailBoat() + { + InitializeComponent(); + } + private void Draw() + { + if (_drawningSailBoat == null) { return; } + Bitmap bmp = new(pictureBoxSailBoat.Width, pictureBoxSailBoat.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawningSailBoat.DrawTransport(gr); + pictureBoxSailBoat.Image = bmp; + } + + private void buttonCreateSailBoat_Click(object sender, EventArgs e) + { + Random random = new(); + _drawningSailBoat = new DrawningSailBoat(); + _drawningSailBoat.Init(random.Next(300, 700), random.Next(2000, 4000), Color.FromArgb(random.Next(0, 255), random.Next(0, 255), random.Next(0, 255)), Color.FromArgb(random.Next(0, 255), random.Next(0, 255), random.Next(0, 255)), Convert.ToBoolean(random.Next(0, 2)), Convert.ToBoolean(random.Next(0, 2)), pictureBoxSailBoat.Width, pictureBoxSailBoat.Height); + _drawningSailBoat.SetPosition(random.Next(10, 100), random.Next(10, 100)); + Draw(); + } + private void buttonMove_Click(object sender, EventArgs e) + { + if (_drawningSailBoat == null) { return; } + string name = ((Button)sender)?.Name ?? string.Empty; + switch (name) + { + case "buttonUp": + _drawningSailBoat.MoveTransport(DirectionType.Up); + break; + case "buttonDown": + _drawningSailBoat.MoveTransport(DirectionType.Down); + break; + case "buttonRight": + _drawningSailBoat.MoveTransport(DirectionType.Right); + break; + case "buttonLeft": + _drawningSailBoat.MoveTransport(DirectionType.Left); + break; + } + Draw(); + } + } +} \ No newline at end of file diff --git a/SailBoat/SailBoat/FormSailBoat.resx b/SailBoat/SailBoat/FormSailBoat.resx new file mode 100644 index 0000000..a395bff --- /dev/null +++ b/SailBoat/SailBoat/FormSailBoat.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/SailBoat/SailBoat/Program.cs b/SailBoat/SailBoat/Program.cs index b9fb0a7..78fbf59 100644 --- a/SailBoat/SailBoat/Program.cs +++ b/SailBoat/SailBoat/Program.cs @@ -11,7 +11,7 @@ namespace SailBoat // 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 FormSailBoat()); } } } \ No newline at end of file diff --git a/SailBoat/SailBoat/Properties/Resources.Designer.cs b/SailBoat/SailBoat/Properties/Resources.Designer.cs new file mode 100644 index 0000000..ed30530 --- /dev/null +++ b/SailBoat/SailBoat/Properties/Resources.Designer.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace SailBoat.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("SailBoat.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 down { + get { + object obj = ResourceManager.GetObject("down", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap left { + get { + object obj = ResourceManager.GetObject("left", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap right { + get { + object obj = ResourceManager.GetObject("right", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap up { + get { + object obj = ResourceManager.GetObject("up", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/SailBoat/SailBoat/Properties/Resources.resx b/SailBoat/SailBoat/Properties/Resources.resx new file mode 100644 index 0000000..2a9fd3d --- /dev/null +++ b/SailBoat/SailBoat/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\right.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\down.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\left.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\up.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/SailBoat/SailBoat/Resources/down.png b/SailBoat/SailBoat/Resources/down.png new file mode 100644 index 0000000..d48db8d Binary files /dev/null and b/SailBoat/SailBoat/Resources/down.png differ diff --git a/SailBoat/SailBoat/Resources/left.png b/SailBoat/SailBoat/Resources/left.png new file mode 100644 index 0000000..cdbe6c7 Binary files /dev/null and b/SailBoat/SailBoat/Resources/left.png differ diff --git a/SailBoat/SailBoat/Resources/right.png b/SailBoat/SailBoat/Resources/right.png new file mode 100644 index 0000000..b3aed57 Binary files /dev/null and b/SailBoat/SailBoat/Resources/right.png differ diff --git a/SailBoat/SailBoat/Resources/up.png b/SailBoat/SailBoat/Resources/up.png new file mode 100644 index 0000000..d29315d Binary files /dev/null and b/SailBoat/SailBoat/Resources/up.png differ diff --git a/SailBoat/SailBoat/SailBoat.csproj b/SailBoat/SailBoat/SailBoat.csproj index b57c89e..13ee123 100644 --- a/SailBoat/SailBoat/SailBoat.csproj +++ b/SailBoat/SailBoat/SailBoat.csproj @@ -8,4 +8,19 @@ enable + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + \ No newline at end of file