diff --git a/ProjectBattleship/ProjectBattleship/DirectionType.cs b/ProjectBattleship/ProjectBattleship/DirectionType.cs new file mode 100644 index 0000000..e1d9123 --- /dev/null +++ b/ProjectBattleship/ProjectBattleship/DirectionType.cs @@ -0,0 +1,23 @@ +namespace ProjectBattleship; +/// +/// Направление перемещения +/// +public enum DirectionType +{ + /// + /// Вверх + /// + Up = 1, + /// + /// Вниз + /// + Down = 2, + /// + /// Влево + /// + Left = 3, + /// + /// Вправо + /// + Right = 4 +} diff --git a/ProjectBattleship/ProjectBattleship/DrawingBattleship.cs b/ProjectBattleship/ProjectBattleship/DrawingBattleship.cs new file mode 100644 index 0000000..b7bf3dd --- /dev/null +++ b/ProjectBattleship/ProjectBattleship/DrawingBattleship.cs @@ -0,0 +1,221 @@ +namespace ProjectBattleship; +/// +/// Класс, отвечающий за прорисовку и перемещение объекта-сущности +/// +public class DrawingBattleship +{ + /// + /// Класс-сущность + /// + public EntityBattleship? EntityBattleship { get; private set; } + /// + /// Ширина окна + /// + private int? _pictureWidth; + /// + /// Высота окна + /// + private int? _pictureHeight; + /// + /// Левая координата прорисовки корабля + /// + private int? _startPosX; + /// + /// Верхняя кооридната прорисовки корабля + /// + private int? _startPosY; + /// + /// Ширина прорисовки корабля + /// + private readonly int _drawingWarshipWidth = 150; + /// + /// Высота прорисовки корабля + /// + private readonly int _drawingWarshipHeight = 50; + /// + /// Инициализация свойств + /// + /// Скорость + /// Вес + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия отсека под ракеты + /// Признак наличия орудийной башни + public void Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool turret, bool rocketCompartment) + { + EntityBattleship = new EntityBattleship(); + EntityBattleship.Init(speed, weight, bodyColor, additionalColor, + turret, rocketCompartment); + _pictureWidth = null; + _pictureHeight = null; + _startPosX = null; + _startPosY = null; + } + /// + /// Установка границ поля + /// + /// Ширина поля + /// Высота поля + /// true - границы заданы, false - проверка не пройдена, + /// нельзя разместить объект в этих размерах + public bool SetPictureSize(int width, int height) + { + if (_drawingWarshipWidth < width && _drawingWarshipHeight < height) + { + _pictureWidth = width; + _pictureHeight = height; + return true; + } + else + return false; + } + /// + /// Установка позиции + /// + /// Координата X + /// Координата Y + public void SetPosition(int x, int y) + { + if (!_pictureHeight.HasValue || !_pictureWidth.HasValue) + { + return; + } + if (x > 0 && y > 0 && x + _drawingWarshipWidth < _pictureWidth + && y + _drawingWarshipHeight < _pictureHeight) + { + _startPosX = x; + _startPosY = y; + } + else + { + Random rnd = new(); + _startPosX = rnd.Next(0, _pictureWidth.Value - + _drawingWarshipWidth); + _startPosY = rnd.Next(0, _pictureHeight.Value - + _drawingWarshipHeight); + } + } + /// + /// Изменение направления перемещения + /// + /// Направление + /// true - перемещене выполнено, false - перемещение невозможно + public bool MoveTransport(DirectionType direction) + { + if (EntityBattleship == null || !_startPosX.HasValue || + !_startPosY.HasValue) + { + return false; + } + switch (direction) + { + //влево + case DirectionType.Left: + if (_startPosX - EntityBattleship.Step > 0) + { + _startPosX -= (int)EntityBattleship.Step; + } + return true; + //вверх + case DirectionType.Up: + if (_startPosY - EntityBattleship.Step > 0) + { + _startPosY -= (int)EntityBattleship.Step; + } + return true; + //вправо + case DirectionType.Right: + if (_startPosX + _drawingWarshipWidth + EntityBattleship.Step < _pictureWidth) + { + _startPosX += (int)EntityBattleship.Step; + } + return true; + //вниз + case DirectionType.Down: + if (_startPosY + _drawingWarshipHeight + EntityBattleship.Step < _pictureHeight) + { + _startPosY += (int)EntityBattleship.Step; + } + return true; + default: + return false; + } + } + /// + /// Прорисовка объекта + /// + /// + public void DrawTransport(Graphics g) + { + if (EntityBattleship == null || !_startPosX.HasValue || + !_startPosY.HasValue) + { + return; + } + Pen pen = new(Color.Black); + Brush bodyBrush = new SolidBrush(EntityBattleship.BodyColor); + Brush additionalBrush = new + SolidBrush(EntityBattleship.AdditionalColor); + //основная часть + Point[] body = new Point[] {new Point(_startPosX.Value + 5, + _startPosY.Value), new Point(_startPosX.Value + 100, + _startPosY.Value), new Point(_startPosX.Value + 150, + _startPosY.Value + 25), new Point(_startPosX.Value + 100, + _startPosY.Value + 50), new Point(_startPosX.Value + 5, + _startPosY.Value + 50)}; + g.FillPolygon(bodyBrush, body); + g.DrawPolygon(pen, body); + Brush brBlack = new SolidBrush(Color.Black); + g.FillRectangle(brBlack, _startPosX.Value, + _startPosY.Value + 6, 5, 13); + g.FillRectangle(brBlack, _startPosX.Value, + _startPosY.Value + 31, 5, 13); + Brush brDark = new SolidBrush(Color.DarkGray); + g.FillRectangle(brDark, _startPosX.Value + 39, + _startPosY.Value + 20, 40, 10); + g.DrawRectangle(pen, _startPosX.Value + 39, + _startPosY.Value + 20, 40, 10); + g.FillRectangle(brDark, _startPosX.Value + 70, + _startPosY.Value + 12, 18, 26); + g.DrawRectangle(pen, _startPosX.Value + 70, + _startPosY.Value + 12, 18, 26); + g.FillEllipse(brBlack, _startPosX.Value + 94, + _startPosY.Value + 19, 12, 12); + //отсек под ракеты + if (EntityBattleship.RocketCompartment) + { + g.FillRectangle(additionalBrush, _startPosX.Value + 14, + _startPosY.Value + 14, 10, 10); + g.FillRectangle(additionalBrush, _startPosX.Value + 26, + _startPosY.Value + 14, 10, 10); + g.FillRectangle(additionalBrush, _startPosX.Value + 14, + _startPosY.Value + 26, 10, 10); + g.FillRectangle(additionalBrush, _startPosX.Value + 26, + _startPosY.Value + 26, 10, 10); + g.DrawRectangle(pen, _startPosX.Value + 14, + _startPosY.Value + 14, 10, 10); + g.DrawRectangle(pen, _startPosX.Value + 26, + _startPosY.Value + 14, 10, 10); + g.DrawRectangle(pen, _startPosX.Value + 14, + _startPosY.Value + 26, 10, 10); + g.DrawRectangle(pen, _startPosX.Value + 26, + _startPosY.Value + 26, 10, 10); + } + //орудийная башня + if (EntityBattleship.Turret) + { + Point[] turret = new Point[] {new Point(_startPosX.Value + 112, + _startPosY.Value + 19), new Point(_startPosX.Value + 112, + _startPosY.Value + 31), new Point(_startPosX.Value + 119, + _startPosY.Value + 28), new Point(_startPosX.Value + 119, + _startPosY.Value + 22)}; + g.FillPolygon(additionalBrush, turret); + g.FillRectangle(additionalBrush, _startPosX.Value + 119, + _startPosY.Value + 24, 12, 2); + g.DrawPolygon(pen, turret); + g.DrawRectangle(pen, _startPosX.Value + 119, + _startPosY.Value + 24, 12, 2); + } + } +} \ No newline at end of file diff --git a/ProjectBattleship/ProjectBattleship/EntityBattleship.cs b/ProjectBattleship/ProjectBattleship/EntityBattleship.cs new file mode 100644 index 0000000..119f53c --- /dev/null +++ b/ProjectBattleship/ProjectBattleship/EntityBattleship.cs @@ -0,0 +1,54 @@ +namespace ProjectBattleship; +/// +/// Класс-сущность "Линкор" +/// +public class EntityBattleship +{ + /// + /// Скорость + /// + 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 Turret { get; private set; } + /// + /// Признак (опция) наличия отсека под ракеты + /// + public bool RocketCompartment { get; private set; } + /// + /// Шаг перемещения корабля + /// + public double Step => Speed * 100 / Weight; + /// + /// Инициализация полей объекта-класса спортивного автомобиля + /// + /// Скорость + /// Вес автомобиля + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия орудийной башни + /// Признак наличия отсека под ракеты + public void Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool turret, bool rocketCompartment) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + Turret = turret; + RocketCompartment = rocketCompartment; + } +} diff --git a/ProjectBattleship/ProjectBattleship/Form1.Designer.cs b/ProjectBattleship/ProjectBattleship/Form1.Designer.cs deleted file mode 100644 index d6ab4c3..0000000 --- a/ProjectBattleship/ProjectBattleship/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace ProjectBattleship -{ - 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/ProjectBattleship/ProjectBattleship/Form1.cs b/ProjectBattleship/ProjectBattleship/Form1.cs deleted file mode 100644 index 6619484..0000000 --- a/ProjectBattleship/ProjectBattleship/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace ProjectBattleship -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/ProjectBattleship/ProjectBattleship/FormBattleship.Designer.cs b/ProjectBattleship/ProjectBattleship/FormBattleship.Designer.cs new file mode 100644 index 0000000..ff159fd --- /dev/null +++ b/ProjectBattleship/ProjectBattleship/FormBattleship.Designer.cs @@ -0,0 +1,143 @@ +namespace ProjectBattleship +{ + partial class FormBattleship + { + /// + /// 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() + { + pictureBoxBattleship = new PictureBox(); + buttonCreate = new Button(); + buttonLeft = new Button(); + buttonDown = new Button(); + buttonRight = new Button(); + buttonUp = new Button(); + ((System.ComponentModel.ISupportInitialize)pictureBoxBattleship).BeginInit(); + SuspendLayout(); + // + // pictureBoxBattleship + // + pictureBoxBattleship.Dock = DockStyle.Fill; + pictureBoxBattleship.Location = new Point(0, 0); + pictureBoxBattleship.Margin = new Padding(2, 2, 2, 2); + pictureBoxBattleship.Name = "pictureBoxBattleship"; + pictureBoxBattleship.Size = new Size(730, 363); + pictureBoxBattleship.TabIndex = 0; + pictureBoxBattleship.TabStop = false; + // + // buttonCreate + // + buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + buttonCreate.Location = new Point(10, 320); + buttonCreate.Margin = new Padding(2, 2, 2, 2); + buttonCreate.Name = "buttonCreate"; + buttonCreate.Size = new Size(109, 33); + buttonCreate.TabIndex = 1; + buttonCreate.Text = "Создать "; + buttonCreate.UseVisualStyleBackColor = true; + buttonCreate.Click += ButtonCreateBattleship_Click; + // + // buttonLeft + // + buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonLeft.BackgroundImage = Properties.Resources.arrowLeft; + buttonLeft.BackgroundImageLayout = ImageLayout.Stretch; + buttonLeft.Location = new Point(616, 324); + buttonLeft.Margin = new Padding(2, 2, 2, 2); + buttonLeft.Name = "buttonLeft"; + buttonLeft.Size = new Size(29, 29); + buttonLeft.TabIndex = 2; + buttonLeft.UseVisualStyleBackColor = true; + buttonLeft.Click += ButtonMove_Click; + // + // buttonDown + // + buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonDown.BackgroundImage = Properties.Resources.arrowDown; + buttonDown.BackgroundImageLayout = ImageLayout.Stretch; + buttonDown.Location = new Point(650, 324); + buttonDown.Margin = new Padding(2, 2, 2, 2); + buttonDown.Name = "buttonDown"; + buttonDown.Size = new Size(29, 29); + buttonDown.TabIndex = 3; + buttonDown.UseVisualStyleBackColor = true; + buttonDown.Click += ButtonMove_Click; + // + // buttonRight + // + buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonRight.BackgroundImage = Properties.Resources.arrowRight; + buttonRight.BackgroundImageLayout = ImageLayout.Stretch; + buttonRight.Location = new Point(684, 324); + buttonRight.Margin = new Padding(2, 2, 2, 2); + buttonRight.Name = "buttonRight"; + buttonRight.Size = new Size(29, 29); + buttonRight.TabIndex = 4; + buttonRight.UseVisualStyleBackColor = true; + buttonRight.Click += ButtonMove_Click; + // + // buttonUp + // + buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonUp.BackgroundImage = Properties.Resources.arrowUp; + buttonUp.BackgroundImageLayout = ImageLayout.Stretch; + buttonUp.Location = new Point(650, 290); + buttonUp.Margin = new Padding(2, 2, 2, 2); + buttonUp.Name = "buttonUp"; + buttonUp.Size = new Size(29, 29); + buttonUp.TabIndex = 5; + buttonUp.UseVisualStyleBackColor = true; + buttonUp.Click += ButtonMove_Click; + // + // FormBattleship + // + AutoScaleDimensions = new SizeF(10F, 25F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(730, 363); + Controls.Add(buttonUp); + Controls.Add(buttonRight); + Controls.Add(buttonDown); + Controls.Add(buttonLeft); + Controls.Add(buttonCreate); + Controls.Add(pictureBoxBattleship); + Margin = new Padding(2, 2, 2, 2); + Name = "FormBattleship"; + StartPosition = FormStartPosition.CenterScreen; + Text = "Линкор"; + TopMost = true; + ((System.ComponentModel.ISupportInitialize)pictureBoxBattleship).EndInit(); + ResumeLayout(false); + } + + #endregion + + private PictureBox pictureBoxBattleship; + private Button buttonCreate; + private Button buttonLeft; + private Button buttonDown; + private Button buttonRight; + private Button buttonUp; + } +} \ No newline at end of file diff --git a/ProjectBattleship/ProjectBattleship/FormBattleship.cs b/ProjectBattleship/ProjectBattleship/FormBattleship.cs new file mode 100644 index 0000000..2e191eb --- /dev/null +++ b/ProjectBattleship/ProjectBattleship/FormBattleship.cs @@ -0,0 +1,90 @@ +namespace ProjectBattleship; +/// +/// " " +/// +public partial class FormBattleship : Form +{ + /// + /// - + /// + private DrawingBattleship? _drawingBattleship; + /// + /// + /// + public FormBattleship() + { + InitializeComponent(); + } + /// + /// + /// + private void Draw() + { + if (_drawingBattleship == null) + { + return; + } + Bitmap bmp = new(pictureBoxBattleship.Width, + pictureBoxBattleship.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawingBattleship.DrawTransport(gr); + pictureBoxBattleship.Image = bmp; + } + /// + /// "" + /// + /// + /// + private void ButtonCreateBattleship_Click(object sender, EventArgs e) + { + Random random = new(); + _drawingBattleship = new DrawingBattleship(); + _drawingBattleship.Init(random.Next(100, 300), random.Next(1000, 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))); + _drawingBattleship.SetPictureSize(pictureBoxBattleship.Width, + pictureBoxBattleship.Height); + _drawingBattleship.SetPosition(random.Next(10, 100), + random.Next(10, 100)); + Draw(); + } + /// + /// ( ) + /// + /// + /// + private void ButtonMove_Click(object sender, EventArgs e) + { + if (_drawingBattleship == null) + { + return; + } + string name = ((Button)sender)?.Name ?? string.Empty; + bool result = false; + switch (name) + { + case "buttonUp": + result = + _drawingBattleship.MoveTransport(DirectionType.Up); + break; + case "buttonDown": + result = + _drawingBattleship.MoveTransport(DirectionType.Down); + break; + case "buttonLeft": + result = + _drawingBattleship.MoveTransport(DirectionType.Left); + break; + case "buttonRight": + result = + _drawingBattleship.MoveTransport(DirectionType.Right); + break; + } + if (result) + { + Draw(); + } + } +} diff --git a/ProjectBattleship/ProjectBattleship/Form1.resx b/ProjectBattleship/ProjectBattleship/FormBattleship.resx similarity index 93% rename from ProjectBattleship/ProjectBattleship/Form1.resx rename to ProjectBattleship/ProjectBattleship/FormBattleship.resx index 1af7de1..a395bff 100644 --- a/ProjectBattleship/ProjectBattleship/Form1.resx +++ b/ProjectBattleship/ProjectBattleship/FormBattleship.resx @@ -1,24 +1,24 @@  - diff --git a/ProjectBattleship/ProjectBattleship/Program.cs b/ProjectBattleship/ProjectBattleship/Program.cs index 886e9f5..5e455fb 100644 --- a/ProjectBattleship/ProjectBattleship/Program.cs +++ b/ProjectBattleship/ProjectBattleship/Program.cs @@ -3,15 +3,13 @@ namespace ProjectBattleship internal static class Program { /// - /// The main entry point for the application. + /// The main entry point for the application. /// [STAThread] static void Main() { - // 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 FormBattleship()); } } } \ No newline at end of file diff --git a/ProjectBattleship/ProjectBattleship/ProjectBattleship.csproj b/ProjectBattleship/ProjectBattleship/ProjectBattleship.csproj index b57c89e..13ee123 100644 --- a/ProjectBattleship/ProjectBattleship/ProjectBattleship.csproj +++ b/ProjectBattleship/ProjectBattleship/ProjectBattleship.csproj @@ -8,4 +8,19 @@ enable + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + \ No newline at end of file diff --git a/ProjectBattleship/ProjectBattleship/Properties/Resources.Designer.cs b/ProjectBattleship/ProjectBattleship/Properties/Resources.Designer.cs new file mode 100644 index 0000000..ad7e957 --- /dev/null +++ b/ProjectBattleship/ProjectBattleship/Properties/Resources.Designer.cs @@ -0,0 +1,113 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace ProjectBattleship.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("ProjectBattleship.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 arrowLeft1 { + get { + object obj = ResourceManager.GetObject("arrowLeft1", 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/ProjectBattleship/ProjectBattleship/Properties/Resources.resx b/ProjectBattleship/ProjectBattleship/Properties/Resources.resx new file mode 100644 index 0000000..2c38eff --- /dev/null +++ b/ProjectBattleship/ProjectBattleship/Properties/Resources.resx @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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\arrowLeft.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowDown.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowLeft1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowRight.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowUp.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/ProjectBattleship/ProjectBattleship/Resources/arrowDown.png b/ProjectBattleship/ProjectBattleship/Resources/arrowDown.png new file mode 100644 index 0000000..771cc02 Binary files /dev/null and b/ProjectBattleship/ProjectBattleship/Resources/arrowDown.png differ diff --git a/ProjectBattleship/ProjectBattleship/Resources/arrowLeft.png b/ProjectBattleship/ProjectBattleship/Resources/arrowLeft.png new file mode 100644 index 0000000..a069064 Binary files /dev/null and b/ProjectBattleship/ProjectBattleship/Resources/arrowLeft.png differ diff --git a/ProjectBattleship/ProjectBattleship/Resources/arrowLeft1.png b/ProjectBattleship/ProjectBattleship/Resources/arrowLeft1.png new file mode 100644 index 0000000..a069064 Binary files /dev/null and b/ProjectBattleship/ProjectBattleship/Resources/arrowLeft1.png differ diff --git a/ProjectBattleship/ProjectBattleship/Resources/arrowRight.png b/ProjectBattleship/ProjectBattleship/Resources/arrowRight.png new file mode 100644 index 0000000..2ac80f4 Binary files /dev/null and b/ProjectBattleship/ProjectBattleship/Resources/arrowRight.png differ diff --git a/ProjectBattleship/ProjectBattleship/Resources/arrowUp.png b/ProjectBattleship/ProjectBattleship/Resources/arrowUp.png new file mode 100644 index 0000000..7d560a5 Binary files /dev/null and b/ProjectBattleship/ProjectBattleship/Resources/arrowUp.png differ