diff --git a/ProjectSeaplane/ProjectSeaplane/Directions.cs b/ProjectSeaplane/ProjectSeaplane/Directions.cs new file mode 100644 index 0000000..b58fc9f --- /dev/null +++ b/ProjectSeaplane/ProjectSeaplane/Directions.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSeaplane +{ + /// + /// Направление перемещения + /// + public enum DirectionType + { + /// + /// Вверх + /// + Up = 1, + /// + /// Вниз + /// + Down = 2, + /// + /// Влево + /// + Left = 3, + /// + /// Вправо + /// + Right = 4 + } +} diff --git a/ProjectSeaplane/ProjectSeaplane/DrawingSeaplane.cs b/ProjectSeaplane/ProjectSeaplane/DrawingSeaplane.cs new file mode 100644 index 0000000..68a1ff1 --- /dev/null +++ b/ProjectSeaplane/ProjectSeaplane/DrawingSeaplane.cs @@ -0,0 +1,238 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSeaplane +{ + /// + /// Класс, отвечающий за прорисовку и перемещение объекта-сущности + /// + public class DrawningSeaplane + { + /// + /// Класс-сущность + /// + public EntitySeaplane? EntitySeaplane { get; private set; } + /// + /// Ширина окна + /// + private int _pictureWidth; + /// + /// Высота окна + /// + private int _pictureHeight; + /// + + /// Левая координата прорисовки автомобиля + /// + private int _startPosX; + /// + /// Верхняя кооридната прорисовки автомобиля + /// + private int _startPosY; + /// + /// Ширина прорисовки автомобиля + /// + private int _seaplaneWidth = 200; + /// + /// Высота прорисовки автомобиля + /// + private int _seaplaneHeight = 110; + /// + /// Инициализация свойств + /// + /// Скорость + /// Вес + /// Цвет кузова + /// Дополнительный цвет + /// /// Лодка + /// /// Дополнительный цвет + /// Ширина картинки + /// Высота картинки + /// true - объект создан, false - проверка не пройдена, нельзя создать объект в этих размерах + public bool Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool boat, bool floater, int width, int height) + { + if (width < _pictureWidth || height < _pictureHeight) + { + return false; + } + if (!floater) + { + _seaplaneHeight = 90; + } + else + { + _seaplaneHeight = 110; + } + _pictureWidth = width; + _pictureHeight = height; + EntitySeaplane = new EntitySeaplane(); + EntitySeaplane.Init(speed, weight, bodyColor, additionalColor, boat, floater); + return true; + } + /// + /// Установка позиции + /// + /// Координата X + /// Координата Y + public void SetPosition(int x, int y) + { + if (x <= _pictureWidth - _seaplaneWidth && y <= _pictureHeight - _seaplaneHeight) + { + _startPosX = x; + _startPosY = y; + } + } + /// + /// Изменение направления перемещения + /// + /// Направление + public void MoveTransport(DirectionType direction) + { + if (EntitySeaplane == null) + { + return; + } + switch (direction) + { + //влево + case DirectionType.Left: + if (_startPosX - EntitySeaplane.Step > 0) + { + _startPosX -= (int)EntitySeaplane.Step; + } + else + { + _startPosX = 0; + } + break; + //вверх + case DirectionType.Up: + if (_startPosY - EntitySeaplane.Step > 0) + { + _startPosY -= (int)EntitySeaplane.Step; + } + else + { + _startPosY = 0; + } + break; + // вправо + case DirectionType.Right: + if (_startPosX + _seaplaneWidth + EntitySeaplane.Step <= _pictureWidth) + { + _startPosX += (int)EntitySeaplane.Step; + } + else + { + _startPosX = _pictureWidth - _seaplaneWidth; + } + break; + //вниз + case DirectionType.Down: + if (_startPosY + _seaplaneHeight + EntitySeaplane.Step <= _pictureHeight) + { + _startPosY += (int)EntitySeaplane.Step; + } + else + { + _startPosY = _pictureHeight - _seaplaneHeight; + } + break; + } + } + + /// + /// Прорисовка объекта + /// + /// + public void DrawTransport(Graphics g) + { + if (EntitySeaplane == null) + { + return; + } + + Pen pen = new(Color.Black); + Brush additionalBrush = new SolidBrush(EntitySeaplane.AdditionalColor); + + // лодка + if (EntitySeaplane.Boat) + { + g.DrawEllipse(pen, _startPosX + 40, _startPosY, 90, 20); + g.DrawLine(pen, _startPosX + 60, _startPosY + 20, _startPosX + 50, _startPosY + 30); + g.DrawLine(pen, _startPosX + 60, _startPosY + 20, _startPosX + 70, _startPosY + 30); + g.DrawLine(pen, _startPosX + 110, _startPosY + 20, _startPosX + 100, _startPosY + 30); + g.DrawLine(pen, _startPosX + 110, _startPosY + 20, _startPosX + 120, _startPosY + 30); + g.FillEllipse(additionalBrush, _startPosX + 40, _startPosY, 90, 20); + } + // границы гидролета + g.DrawLine(pen, _startPosX + 10, _startPosY, _startPosX + 10, _startPosY + 30); + g.DrawLine(pen, _startPosX + 10, _startPosY, _startPosX + 40, _startPosY + 30); + g.DrawLine(pen, _startPosX + 10, _startPosY + 30, _startPosX + 150, _startPosY + 30); + g.DrawLine(pen, _startPosX + 150, _startPosY + 30, _startPosX + 150, _startPosY + 80); + g.DrawLine(pen, _startPosX + 10, _startPosY + 80, _startPosX + 150, _startPosY + 80); + g.DrawLine(pen, _startPosX + 150, _startPosY + 30, _startPosX + 200, _startPosY + 55); + g.DrawLine(pen, _startPosX + 200, _startPosY + 55, _startPosX + 150, _startPosY + 55); + g.DrawLine(pen, _startPosX + 200, _startPosY + 55, _startPosX + 150, _startPosY + 80); + g.DrawPie(pen, _startPosX, _startPosY + 30, 20, 50, 90, 180); + g.DrawEllipse(pen, _startPosX, _startPosY + 25, 35, 10); + g.DrawEllipse(pen, _startPosX + 40, _startPosY + 50, 80, 10); + + //вертикальная стабилизация + Brush mainBrush = new SolidBrush(EntitySeaplane.BodyColor); + Point point7 = new Point(_startPosX + 11, _startPosY + 1); + Point point8 = new Point(_startPosX + 11, _startPosY + 31); + Point point9 = new Point(_startPosX + 39, _startPosY + 31); + Point[] vert_stab = {point7, point8, point9, point7 }; + g.FillPolygon(mainBrush, vert_stab); + + //хвостовая часть + g.FillPie(mainBrush, _startPosX, _startPosY + 30, 20, 50, 90, 180); + //нос + Brush brGray = new SolidBrush(Color.Gray); + Point point1 = new Point(_startPosX + 150, _startPosY + 30); + Point point2 = new Point(_startPosX + 200, _startPosY + 55); + Point point3 = new Point(_startPosX + 150, _startPosY + 55); + Point[] nos1 = { point1, point2, point3, point1 }; + g.FillPolygon(brGray, nos1); + Point point4 = new Point(_startPosX + 150, _startPosY + 55); + Point point5 = new Point(_startPosX + 200, _startPosY + 55); + Point point6 = new Point(_startPosX + 150, _startPosY + 80); + Point[] nos2 = { point4, point5, point6, point4 }; + g.FillPolygon(brGray, nos2); + g.DrawLine(pen, _startPosX + 200, _startPosY + 55, _startPosX + 150, _startPosY + 55); + + //корпус + Point point10 = new Point(_startPosX + 10, _startPosY + 31); + Point point11 = new Point(_startPosX + 149, _startPosY + 31); + Point point12 = new Point(_startPosX + 149, _startPosY + 79); + Point point13 = new Point(_startPosX + 10, _startPosY + 79); + Point[] body = {point10, point11, point12, point13, point10 }; + g.FillPolygon(mainBrush, body); + + //крылья + Brush brBlack = new SolidBrush(Color.Black); + g.FillEllipse(brBlack, _startPosX + 40, _startPosY + 50, 80, 10); + g.FillEllipse(brBlack, _startPosX, _startPosY + 25, 35, 10); + + //поплавок + if(EntitySeaplane.Floater) + { + g.DrawLine(pen, _startPosX + 70, _startPosY + 80, _startPosX + 50, _startPosY + 100); + g.DrawLine(pen, _startPosX + 70, _startPosY + 80, _startPosX + 70, _startPosY + 100); + g.DrawLine(pen, _startPosX + 120, _startPosY + 80, _startPosX + 90, _startPosY + 100); + g.DrawLine(pen, _startPosX + 120, _startPosY + 80, _startPosX + 110, _startPosY + 100); + g.DrawLine(pen, _startPosX + 120, _startPosY + 80, _startPosX + 140, _startPosY + 100); + g.DrawEllipse(pen, _startPosX + 30, _startPosY + 100, 140, 10); + g.FillEllipse(additionalBrush, _startPosX + 30, _startPosY + 100, 140, 10); + } + + + } + + } +} diff --git a/ProjectSeaplane/ProjectSeaplane/EntitySeaplane.cs b/ProjectSeaplane/ProjectSeaplane/EntitySeaplane.cs new file mode 100644 index 0000000..45b4cb8 --- /dev/null +++ b/ProjectSeaplane/ProjectSeaplane/EntitySeaplane.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectSeaplane +{ + public class EntitySeaplane + { + /// + /// Скорость + /// + public int Speed { get; private set; } + /// + /// Вес + /// + public double Weight { get; private set; } + /// + /// Основной цвет + /// + public Color BodyColor { get; private set; } + /// + /// Лодка + /// + public bool Boat { get; private set; } + /// + /// Лодка + /// + public bool Floater { get; private set; } + /// + /// Дополнительный цвет (для опциональных элементов) + /// + public Color AdditionalColor { get; private set; } + /// + /// Шаг перемещения автомобиля + /// + public double Step => (double)Speed * 100 / Weight; + /// + /// Инициализация полей объекта-класса спортивного автомобиля + /// + /// Скорость + /// Вес автомобиля + /// Основной цвет + /// Дополнительный цвет + public void Init(int speed, double weight, Color bodyColor, Color + additionalColor, bool boat, bool floater) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + Boat = boat; + Floater = floater; + } + } +} diff --git a/ProjectSeaplane/ProjectSeaplane/Form1.Designer.cs b/ProjectSeaplane/ProjectSeaplane/Form1.Designer.cs deleted file mode 100644 index 8e222d3..0000000 --- a/ProjectSeaplane/ProjectSeaplane/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace ProjectSeaplane -{ - 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/ProjectSeaplane/ProjectSeaplane/Form1.cs b/ProjectSeaplane/ProjectSeaplane/Form1.cs deleted file mode 100644 index 4a978b3..0000000 --- a/ProjectSeaplane/ProjectSeaplane/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace ProjectSeaplane -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/ProjectSeaplane/ProjectSeaplane/FormSeaplane.Designer.cs b/ProjectSeaplane/ProjectSeaplane/FormSeaplane.Designer.cs new file mode 100644 index 0000000..85f59a3 --- /dev/null +++ b/ProjectSeaplane/ProjectSeaplane/FormSeaplane.Designer.cs @@ -0,0 +1,137 @@ +namespace ProjectSeaplane +{ + partial class FormSeaplane + { + /// + /// 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() + { + pictureBoxSeaplane = new PictureBox(); + buttonCreate = new Button(); + buttonRight = new Button(); + buttonDown = new Button(); + buttonLeft = new Button(); + buttonUp = new Button(); + ((System.ComponentModel.ISupportInitialize)pictureBoxSeaplane).BeginInit(); + SuspendLayout(); + // + // pictureBoxSeaplane + // + pictureBoxSeaplane.Dock = DockStyle.Fill; + pictureBoxSeaplane.Location = new Point(0, 0); + pictureBoxSeaplane.Name = "pictureBoxSeaplane"; + pictureBoxSeaplane.Size = new Size(884, 461); + pictureBoxSeaplane.SizeMode = PictureBoxSizeMode.AutoSize; + pictureBoxSeaplane.TabIndex = 0; + pictureBoxSeaplane.TabStop = false; + // + // buttonCreate + // + buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + buttonCreate.Location = new Point(0, 438); + buttonCreate.Name = "buttonCreate"; + buttonCreate.Size = new Size(75, 23); + buttonCreate.TabIndex = 1; + buttonCreate.Text = "Создать"; + buttonCreate.UseVisualStyleBackColor = true; + buttonCreate.Click += buttonCreate_Click; + // + // buttonRight + // + buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonRight.BackgroundImage = Properties.Resources.arrowRight2; + buttonRight.BackgroundImageLayout = ImageLayout.Zoom; + buttonRight.Location = new Point(854, 431); + buttonRight.Name = "buttonRight"; + buttonRight.Size = new Size(30, 30); + buttonRight.TabIndex = 2; + buttonRight.UseVisualStyleBackColor = true; + buttonRight.Click += buttonMove_Click; + // + // buttonDown + // + buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonDown.BackgroundImage = Properties.Resources.arrowDown2; + buttonDown.BackgroundImageLayout = ImageLayout.Zoom; + buttonDown.Location = new Point(818, 431); + buttonDown.Name = "buttonDown"; + buttonDown.Size = new Size(30, 30); + buttonDown.TabIndex = 3; + buttonDown.UseVisualStyleBackColor = true; + buttonDown.Click += buttonMove_Click; + // + // buttonLeft + // + buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonLeft.BackgroundImage = Properties.Resources.arrowLeft; + buttonLeft.BackgroundImageLayout = ImageLayout.Zoom; + buttonLeft.Location = new Point(782, 431); + buttonLeft.Name = "buttonLeft"; + buttonLeft.Size = new Size(30, 30); + buttonLeft.TabIndex = 4; + buttonLeft.UseVisualStyleBackColor = true; + buttonLeft.Click += buttonMove_Click; + // + // buttonUp + // + buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonUp.BackgroundImage = Properties.Resources.arrowUp2; + buttonUp.BackgroundImageLayout = ImageLayout.Zoom; + buttonUp.Location = new Point(818, 395); + buttonUp.Name = "buttonUp"; + buttonUp.Size = new Size(30, 30); + buttonUp.TabIndex = 5; + buttonUp.UseVisualStyleBackColor = true; + buttonUp.Click += buttonMove_Click; + // + // Seaplane + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(884, 461); + Controls.Add(buttonUp); + Controls.Add(buttonLeft); + Controls.Add(buttonDown); + Controls.Add(buttonRight); + Controls.Add(buttonCreate); + Controls.Add(pictureBoxSeaplane); + Name = "Seaplane"; + StartPosition = FormStartPosition.CenterScreen; + Text = "Гидросамолет"; + ((System.ComponentModel.ISupportInitialize)pictureBoxSeaplane).EndInit(); + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private PictureBox pictureBoxSeaplane; + private Button buttonCreate; + private Button buttonRight; + private Button buttonDown; + private Button buttonLeft; + private Button buttonUp; + } +} \ No newline at end of file diff --git a/ProjectSeaplane/ProjectSeaplane/FormSeaplane.cs b/ProjectSeaplane/ProjectSeaplane/FormSeaplane.cs new file mode 100644 index 0000000..ebe5f6c --- /dev/null +++ b/ProjectSeaplane/ProjectSeaplane/FormSeaplane.cs @@ -0,0 +1,64 @@ +namespace ProjectSeaplane +{ + public partial class FormSeaplane : Form + { + + private DrawningSeaplane? _drawningSeaplane; + public FormSeaplane() + { + InitializeComponent(); + } + + private void Draw() + { + if (_drawningSeaplane == null) + { + return; + } + Bitmap bmp = new(pictureBoxSeaplane.Width, pictureBoxSeaplane.Height); + Graphics g = Graphics.FromImage(bmp); + _drawningSeaplane.DrawTransport(g); + pictureBoxSeaplane.Image = bmp; + } + + private void buttonCreate_Click(object sender, EventArgs e) + { + Random random = new(); + _drawningSeaplane = new DrawningSeaplane(); + _drawningSeaplane.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)), + pictureBoxSeaplane.Width, pictureBoxSeaplane.Height); + _drawningSeaplane.SetPosition(random.Next(10, 100), random.Next(10, 100)); + Draw(); + } + + private void buttonMove_Click(object sender, EventArgs e) + { + if (_drawningSeaplane == null) + { + return; + } + string name = ((Button)sender)?.Name ?? string.Empty; + switch (name) + { + case "buttonUp": + _drawningSeaplane.MoveTransport(DirectionType.Up); + break; + case "buttonDown": + _drawningSeaplane.MoveTransport(DirectionType.Down); + break; + case "buttonLeft": + _drawningSeaplane.MoveTransport(DirectionType.Left); + break; + case "buttonRight": + _drawningSeaplane.MoveTransport(DirectionType.Right); + break; + } + Draw(); + + } + } +} \ No newline at end of file diff --git a/ProjectSeaplane/ProjectSeaplane/FormSeaplane.resx b/ProjectSeaplane/ProjectSeaplane/FormSeaplane.resx new file mode 100644 index 0000000..f298a7b --- /dev/null +++ b/ProjectSeaplane/ProjectSeaplane/FormSeaplane.resx @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/ProjectSeaplane/ProjectSeaplane/Program.cs b/ProjectSeaplane/ProjectSeaplane/Program.cs index bcf84b2..4e58da8 100644 --- a/ProjectSeaplane/ProjectSeaplane/Program.cs +++ b/ProjectSeaplane/ProjectSeaplane/Program.cs @@ -11,7 +11,7 @@ namespace ProjectSeaplane // 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 FormSeaplane()); } } } \ No newline at end of file diff --git a/ProjectSeaplane/ProjectSeaplane/ProjectSeaplane.csproj b/ProjectSeaplane/ProjectSeaplane/ProjectSeaplane.csproj index b57c89e..13ee123 100644 --- a/ProjectSeaplane/ProjectSeaplane/ProjectSeaplane.csproj +++ b/ProjectSeaplane/ProjectSeaplane/ProjectSeaplane.csproj @@ -8,4 +8,19 @@ enable + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + \ No newline at end of file diff --git a/ProjectSeaplane/ProjectSeaplane/Properties/Resources.Designer.cs b/ProjectSeaplane/ProjectSeaplane/Properties/Resources.Designer.cs new file mode 100644 index 0000000..0a4c507 --- /dev/null +++ b/ProjectSeaplane/ProjectSeaplane/Properties/Resources.Designer.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace ProjectSeaplane.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("ProjectSeaplane.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 arrowDown2 { + get { + object obj = ResourceManager.GetObject("arrowDown2", 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 arrowRight2 { + get { + object obj = ResourceManager.GetObject("arrowRight2", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap arrowUp2 { + get { + object obj = ResourceManager.GetObject("arrowUp2", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/ProjectSeaplane/ProjectSeaplane/Properties/Resources.resx b/ProjectSeaplane/ProjectSeaplane/Properties/Resources.resx new file mode 100644 index 0000000..bbfde11 --- /dev/null +++ b/ProjectSeaplane/ProjectSeaplane/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\arrowUp2.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowRight2.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrowDown2.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 + + \ No newline at end of file diff --git a/ProjectSeaplane/ProjectSeaplane/Resources/arrowDown2.jpg b/ProjectSeaplane/ProjectSeaplane/Resources/arrowDown2.jpg new file mode 100644 index 0000000..95facb9 Binary files /dev/null and b/ProjectSeaplane/ProjectSeaplane/Resources/arrowDown2.jpg differ diff --git a/ProjectSeaplane/ProjectSeaplane/Resources/arrowLeft.jpg b/ProjectSeaplane/ProjectSeaplane/Resources/arrowLeft.jpg new file mode 100644 index 0000000..3656a11 Binary files /dev/null and b/ProjectSeaplane/ProjectSeaplane/Resources/arrowLeft.jpg differ diff --git a/ProjectSeaplane/ProjectSeaplane/Resources/arrowRight2.jpg b/ProjectSeaplane/ProjectSeaplane/Resources/arrowRight2.jpg new file mode 100644 index 0000000..1607237 Binary files /dev/null and b/ProjectSeaplane/ProjectSeaplane/Resources/arrowRight2.jpg differ diff --git a/ProjectSeaplane/ProjectSeaplane/Resources/arrowUp2.jpg b/ProjectSeaplane/ProjectSeaplane/Resources/arrowUp2.jpg new file mode 100644 index 0000000..eb3a2fa Binary files /dev/null and b/ProjectSeaplane/ProjectSeaplane/Resources/arrowUp2.jpg differ