diff --git a/ProjectCleaningCar/ProjectCleaningCar/DirectionType.cs b/ProjectCleaningCar/ProjectCleaningCar/DirectionType.cs new file mode 100644 index 0000000..6fb07e7 --- /dev/null +++ b/ProjectCleaningCar/ProjectCleaningCar/DirectionType.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectCleaningCar; +/// +/// Направление перемещения +/// +public enum DirectionType +{ + /// + /// Вверх + /// + Up = 1, + /// + /// Вниз + /// + Down = 2, + /// + /// Влево + /// + Left = 3, + /// + /// Вправо + /// + Right = 4 +} diff --git a/ProjectCleaningCar/ProjectCleaningCar/DrawningCleaningCar.cs b/ProjectCleaningCar/ProjectCleaningCar/DrawningCleaningCar.cs new file mode 100644 index 0000000..0880ef6 --- /dev/null +++ b/ProjectCleaningCar/ProjectCleaningCar/DrawningCleaningCar.cs @@ -0,0 +1,204 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectCleaningCar; +/// +/// Класс, отвечающий за прорисовку и перемещение объекта-сущности +/// +public class DrawningCleaningCar +{ + /// + /// Класс-сущность + /// + public EntityCleaningCar? EntityCleaningCar { get; private set; } + /// + /// Ширина окна + /// + private int? _pictureWidth = null; + /// + /// Высота окна + /// + private int? _pictureHeight = null; + /// + /// Левая координата прорисовки автомобиля + /// + private int? _startPosX; + /// + /// Верхняя координата прорисовки автомобиля + /// + private int? _startPosY; + /// + /// Ширина прорисовки автомобиля + /// + private readonly int _drawningCleaningCarWidth = 150; + /// + /// Высота прорисовки автомобиля + /// + private readonly int _drawningCleaningCarHeight = 80; + /// + /// Инициализация свойств + /// + /// Скорость + /// Вес + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия бака под воду + /// Признак наличия + public void Init(int speed, double weight, Color bodyColor, Color additionalColor, + bool waterTank, bool sweepingBrush) + { + EntityCleaningCar = new EntityCleaningCar(); + EntityCleaningCar.Init(speed, weight, bodyColor, additionalColor, waterTank, sweepingBrush); + //_pictureWidth = null; + //_pictureHeight = null; + //_startPosX = null; + //_startPosY = null; + } + /// + /// Установка границ поля + /// + /// Ширина поля + /// Высота поля + /// true - границы заданы, false - проверка не найдена, нельзя разместить + /// объект в этих размерах + public void SetPictureSize(int width, int height) + { + _pictureWidth = width; + _pictureHeight = height; + if (_pictureWidth <= _drawningCleaningCarWidth || _pictureHeight <= _drawningCleaningCarHeight) + { + _pictureWidth = null; + _pictureHeight = null; + return; + } + if (_startPosX + _drawningCleaningCarWidth > _pictureWidth) + { + _startPosX = _pictureWidth.Value - _drawningCleaningCarWidth; + } + if (_startPosY + _drawningCleaningCarHeight > _pictureHeight) + { + _startPosY = _pictureHeight.Value - _drawningCleaningCarHeight; + } + } + /// + /// Установка позиция + /// + /// Координата Х + /// Координата Y + public void SetPosition(int x, int y, int width, int height) + { + //if (!_pictureHeight.HasValue || !_pictureWidth.HasValue) return; + if (width < _drawningCleaningCarWidth || height < _drawningCleaningCarHeight) return; + if (x + _drawningCleaningCarWidth > width || x < 0) return; + if (y + _drawningCleaningCarHeight > height || y < 0) return; + + _startPosX = x; + _startPosY = y; + + _pictureWidth = width; + _pictureHeight = height; + } + /// + /// Изменение направления перемещения + /// + /// Направление + /// true - перемещение выполнено, false - перемещение невозможно + public bool MoveTransport(DirectionType direction) + { + if (EntityCleaningCar == null || !_startPosX.HasValue || !_startPosY.HasValue) + { + return false; + } + switch (direction) + { + // Влево + case DirectionType.Left: + if (_startPosX.Value - EntityCleaningCar.Step > 0) + { + _startPosX -= (int)EntityCleaningCar.Step; + } + return true; + // Вверх + case DirectionType.Up: + if (_startPosY.Value - EntityCleaningCar.Step > 0) + { + _startPosY -= (int)EntityCleaningCar.Step; + } + return true; + // Вправо + case DirectionType.Right: + if (_startPosX.Value + _drawningCleaningCarWidth + EntityCleaningCar.Step < _pictureWidth) + { + _startPosX += (int)EntityCleaningCar.Step; + } + return true; + // Вниз + case DirectionType.Down: + if (_startPosY.Value + _drawningCleaningCarHeight + EntityCleaningCar.Step < _pictureHeight) + { + _startPosY += (int)EntityCleaningCar.Step; + } + return true; + default: + return false; + } + } + /// + /// Прорисовка объекта + /// + /// + public void DrawTransport(Graphics g) + { + if (EntityCleaningCar == null || !_startPosX.HasValue || !_startPosY.HasValue) + { + return; + } + if (!_pictureHeight.HasValue || !_pictureWidth.HasValue) return; + Pen pen = new Pen(Color.Black); + Brush additionalBrush = new SolidBrush(EntityCleaningCar.AdditionalColor); + + // Границы подметально-уборочной машины + Brush br = new SolidBrush(EntityCleaningCar.BodyColor); + // Платформа + g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 40, 100, 20); + g.FillRectangle(br, _startPosX.Value, _startPosY.Value + 40, 100, 20); + // Кабина + g.DrawRectangle(pen, _startPosX.Value + 80, _startPosY.Value, 20, 40); + g.FillRectangle(br, _startPosX.Value + 80, _startPosY.Value, 20, 40); + // Колёса + Brush brBlack = new SolidBrush(Color.Black); + g.DrawEllipse(pen, _startPosX.Value, _startPosY.Value + 60, 20, 20); + g.DrawEllipse(pen, _startPosX.Value + 25, _startPosY.Value + 60, 20, 20); + g.DrawEllipse(pen, _startPosX.Value + 80, _startPosY.Value + 60, 20, 20); + g.FillEllipse(brBlack, _startPosX.Value, _startPosY.Value + 60, 20, 20); + g.FillEllipse(brBlack, _startPosX.Value + 25, _startPosY.Value + 60, 20, 20); + g.FillEllipse(brBlack, _startPosX.Value + 80, _startPosY.Value + 60, 20, 20); + // Окно + Brush brBlue = new SolidBrush(Color.LightBlue); + g.DrawRectangle(pen, _startPosX.Value + 85, _startPosY.Value + 5, 10, 15); + g.FillRectangle(brBlue, _startPosX.Value + 85, _startPosY.Value + 5, 10, 15); + //Бак под воду + if (EntityCleaningCar.WaterTank) + { + g.FillEllipse(additionalBrush, _startPosX.Value, _startPosY.Value, 80, 40); + g.DrawEllipse(pen, _startPosX.Value, _startPosY.Value, 80, 40); + } + // Щётка + if (EntityCleaningCar.SweepingBrush) + { + g.DrawRectangle(pen, _startPosX.Value + 100, _startPosY.Value + 50, 30, 5); + g.FillRectangle(additionalBrush, _startPosX.Value + 100, _startPosY.Value + 50, 30, 5); + Point[] sweepingBrush = + { + new Point(_startPosX.Value + 130, _startPosY.Value + 50), + new Point(_startPosX.Value + 150, _startPosY.Value + 80), + new Point(_startPosX.Value + 110, _startPosY.Value + 80), + }; + g.FillPolygon(additionalBrush, sweepingBrush); + g.DrawPolygon(pen, sweepingBrush); + } + } +} diff --git a/ProjectCleaningCar/ProjectCleaningCar/EntityCleaningCar.cs b/ProjectCleaningCar/ProjectCleaningCar/EntityCleaningCar.cs new file mode 100644 index 0000000..1fd918b --- /dev/null +++ b/ProjectCleaningCar/ProjectCleaningCar/EntityCleaningCar.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ProjectCleaningCar; +/// +/// Класс-сущность "Подметально-уборочная машина" +/// +public class EntityCleaningCar +{ + /// + /// Скорость + /// + public int Speed { get; set; } + /// + /// Вес + /// + public double Weight { get; set; } + /// + /// Основной цвет + /// + public Color BodyColor { get; private set; } + /// + /// Дополнительный цвет (для опциональных элементов) + /// + public Color AdditionalColor { get; private set; } + /// + /// Признак (опция) наличия бака под воду + /// + public bool WaterTank { get; private set; } + /// + /// Признак (опция) наличия подметательной щётки + /// + public bool SweepingBrush { get; private set; } + /// + /// Шаг перемещения подметательно-уборочной машины + /// + public double Step => Speed * 200 / Weight; + /// + /// Инициализация полей объекта-класса подметально-уборочной машины + /// + /// Скорость + /// Вес автомобиля + /// Основной цвет + /// Дополнительный цвет + /// Признак наличия бака под воду + /// Признак наличия подметательной щётки + public void Init(int speed, double weight, Color bodyColor, Color additionalColor, + bool waterTank, bool sweepingBrush) + { + Speed = speed; + Weight = weight; + BodyColor = bodyColor; + AdditionalColor = additionalColor; + WaterTank = waterTank; + SweepingBrush = sweepingBrush; + } +} diff --git a/ProjectCleaningCar/ProjectCleaningCar/Form1.Designer.cs b/ProjectCleaningCar/ProjectCleaningCar/Form1.Designer.cs deleted file mode 100644 index f1e7fb2..0000000 --- a/ProjectCleaningCar/ProjectCleaningCar/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace ProjectCleaningCar -{ - 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/ProjectCleaningCar/ProjectCleaningCar/Form1.cs b/ProjectCleaningCar/ProjectCleaningCar/Form1.cs deleted file mode 100644 index 7086225..0000000 --- a/ProjectCleaningCar/ProjectCleaningCar/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace ProjectCleaningCar -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/ProjectCleaningCar/ProjectCleaningCar/FormCleaningCar.Designer.cs b/ProjectCleaningCar/ProjectCleaningCar/FormCleaningCar.Designer.cs new file mode 100644 index 0000000..a6292c9 --- /dev/null +++ b/ProjectCleaningCar/ProjectCleaningCar/FormCleaningCar.Designer.cs @@ -0,0 +1,139 @@ +namespace ProjectCleaningCar +{ + partial class FormCleaningCar + { + /// + /// 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() + { + pictureBoxCleaningCar = new PictureBox(); + buttonCreate = new Button(); + ButtonUp = new Button(); + ButtonRight = new Button(); + ButtonLeft = new Button(); + ButtonDown = new Button(); + ((System.ComponentModel.ISupportInitialize)pictureBoxCleaningCar).BeginInit(); + SuspendLayout(); + // + // pictureBoxCleaningCar + // + pictureBoxCleaningCar.Dock = DockStyle.Fill; + pictureBoxCleaningCar.Location = new Point(0, 0); + pictureBoxCleaningCar.Name = "pictureBoxCleaningCar"; + pictureBoxCleaningCar.Size = new Size(884, 461); + pictureBoxCleaningCar.SizeMode = PictureBoxSizeMode.AutoSize; + pictureBoxCleaningCar.TabIndex = 1; + pictureBoxCleaningCar.TabStop = false; + pictureBoxCleaningCar.Click += buttonMove_Click; + pictureBoxCleaningCar.Resize += new System.EventHandler(this.PictureBox_Resize); + // + // buttonCreate + // + buttonCreate.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + buttonCreate.Location = new Point(23, 382); + buttonCreate.Name = "buttonCreate"; + buttonCreate.Size = new Size(124, 42); + buttonCreate.TabIndex = 2; + buttonCreate.Text = "Создать"; + buttonCreate.UseVisualStyleBackColor = true; + buttonCreate.Click += ButtonCreateCleaningCar; + // + // ButtonUp + // + ButtonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + ButtonUp.BackgroundImage = Properties.Resources._1614525823_30_p_strelka_na_belom_fone_33__Up_; + ButtonUp.BackgroundImageLayout = ImageLayout.Zoom; + ButtonUp.Location = new Point(761, 373); + ButtonUp.Name = "ButtonUp"; + ButtonUp.Size = new Size(30, 30); + ButtonUp.TabIndex = 3; + ButtonUp.UseVisualStyleBackColor = true; + ButtonUp.Click += buttonMove_Click; + // + // ButtonRight + // + ButtonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + ButtonRight.BackgroundImage = Properties.Resources._1614525823_30_p_strelka_na_belom_fone__Right_; + ButtonRight.BackgroundImageLayout = ImageLayout.Zoom; + ButtonRight.Location = new Point(797, 409); + ButtonRight.Name = "ButtonRight"; + ButtonRight.Size = new Size(30, 30); + ButtonRight.TabIndex = 4; + ButtonRight.UseVisualStyleBackColor = true; + ButtonRight.Click += buttonMove_Click; + // + // ButtonLeft + // + ButtonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + ButtonLeft.BackgroundImage = Properties.Resources._1614525823_30_p_strelka_na_belom_fone_33__Left_; + ButtonLeft.BackgroundImageLayout = ImageLayout.Zoom; + ButtonLeft.Location = new Point(725, 409); + ButtonLeft.Name = "ButtonLeft"; + ButtonLeft.Size = new Size(30, 30); + ButtonLeft.TabIndex = 5; + ButtonLeft.UseVisualStyleBackColor = true; + ButtonLeft.Click += buttonMove_Click; + // + // ButtonDown + // + ButtonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + ButtonDown.BackgroundImage = Properties.Resources._1614525823_30_p_strelka_na_belom_fone_33__Down_; + ButtonDown.BackgroundImageLayout = ImageLayout.Zoom; + ButtonDown.Location = new Point(761, 409); + ButtonDown.Name = "ButtonDown"; + ButtonDown.Size = new Size(30, 30); + ButtonDown.TabIndex = 6; + ButtonDown.UseVisualStyleBackColor = true; + ButtonDown.Click += buttonMove_Click; + // + // FormCleaningCar + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(884, 461); + Controls.Add(ButtonDown); + Controls.Add(ButtonLeft); + Controls.Add(ButtonRight); + Controls.Add(ButtonUp); + Controls.Add(buttonCreate); + Controls.Add(pictureBoxCleaningCar); + Name = "FormCleaningCar"; + StartPosition = FormStartPosition.CenterScreen; + Text = "Подметально-уборочная машина"; + ((System.ComponentModel.ISupportInitialize)pictureBoxCleaningCar).EndInit(); + ResumeLayout(false); + PerformLayout(); + } + + #endregion + + private PictureBox pictureBoxCleaningCar; + private Button buttonCreate; + private Button ButtonUp; + private Button ButtonRight; + private Button ButtonLeft; + private Button ButtonDown; + } +} \ No newline at end of file diff --git a/ProjectCleaningCar/ProjectCleaningCar/FormCleaningCar.cs b/ProjectCleaningCar/ProjectCleaningCar/FormCleaningCar.cs new file mode 100644 index 0000000..ac56289 --- /dev/null +++ b/ProjectCleaningCar/ProjectCleaningCar/FormCleaningCar.cs @@ -0,0 +1,102 @@ +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 ProjectCleaningCar +{ + /// + /// Форма работы с объектом "Подметально-уборочная машина" + /// + public partial class FormCleaningCar : Form + { + /// + /// Поле-объект для прорисовки объекта + /// + private DrawningCleaningCar? _drawningCleaningCar; + /// + /// Конструктор формы + /// + public FormCleaningCar() + { + InitializeComponent(); + } + private void Draw() + { + if (_drawningCleaningCar == null) + { + return; + } + if (pictureBoxCleaningCar.Width == 0 || pictureBoxCleaningCar.Height == 0) + { + return; + } + Bitmap bmp = new(pictureBoxCleaningCar.Width, pictureBoxCleaningCar.Height); + Graphics gr = Graphics.FromImage(bmp); + _drawningCleaningCar.DrawTransport(gr); + pictureBoxCleaningCar.Image = bmp; + } + /// + /// Обработка нажатия кнопки "Создать" + /// + /// + /// + private void ButtonCreateCleaningCar(object sender, EventArgs e) + { + Random random = new(); + _drawningCleaningCar = new DrawningCleaningCar(); + _drawningCleaningCar.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))); + //_drawningCleaningCar.SetPictureSize(pictureBoxCleaningCar.Width, pictureBoxCleaningCar.Height); + _drawningCleaningCar.SetPosition(random.Next(10, 100), random.Next(10, 100), pictureBoxCleaningCar.Width, pictureBoxCleaningCar.Height); + Draw(); + } + /// + /// Перемещение объекта по форме (нажатие кнопок навигации) + /// + /// + /// + private void buttonMove_Click(object sender, EventArgs e) + { + if (_drawningCleaningCar == null) + { + return; + } + if (pictureBoxCleaningCar.Width == 0 || pictureBoxCleaningCar.Height == 0) return; + string name = ((Button)sender)?.Name ?? string.Empty; + bool result = false; + switch (name) + { + case "ButtonUp": + result = _drawningCleaningCar.MoveTransport(DirectionType.Up); + break; + case "ButtonDown": + result = _drawningCleaningCar.MoveTransport(DirectionType.Down); + break; + case "ButtonLeft": + result = _drawningCleaningCar.MoveTransport(DirectionType.Left); + break; + case "ButtonRight": + result = _drawningCleaningCar.MoveTransport(DirectionType.Right); + break; + } + if (result) + { + Draw(); + } + } + private void PictureBox_Resize(object sender, EventArgs e) + { + _drawningCleaningCar?.SetPictureSize(pictureBoxCleaningCar.Width, pictureBoxCleaningCar.Height); + Draw(); + } + } +} diff --git a/ProjectCleaningCar/ProjectCleaningCar/Form1.resx b/ProjectCleaningCar/ProjectCleaningCar/FormCleaningCar.resx similarity index 93% rename from ProjectCleaningCar/ProjectCleaningCar/Form1.resx rename to ProjectCleaningCar/ProjectCleaningCar/FormCleaningCar.resx index 1af7de1..af32865 100644 --- a/ProjectCleaningCar/ProjectCleaningCar/Form1.resx +++ b/ProjectCleaningCar/ProjectCleaningCar/FormCleaningCar.resx @@ -1,17 +1,17 @@  - diff --git a/ProjectCleaningCar/ProjectCleaningCar/Program.cs b/ProjectCleaningCar/ProjectCleaningCar/Program.cs index 21bfbcb..67932ee 100644 --- a/ProjectCleaningCar/ProjectCleaningCar/Program.cs +++ b/ProjectCleaningCar/ProjectCleaningCar/Program.cs @@ -11,7 +11,7 @@ namespace ProjectCleaningCar // 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 FormCleaningCar()); } } } \ No newline at end of file diff --git a/ProjectCleaningCar/ProjectCleaningCar/ProjectCleaningCar.csproj b/ProjectCleaningCar/ProjectCleaningCar/ProjectCleaningCar.csproj index e1a0735..244387d 100644 --- a/ProjectCleaningCar/ProjectCleaningCar/ProjectCleaningCar.csproj +++ b/ProjectCleaningCar/ProjectCleaningCar/ProjectCleaningCar.csproj @@ -8,4 +8,19 @@ enable + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + \ No newline at end of file diff --git a/ProjectCleaningCar/ProjectCleaningCar/Properties/Resources.Designer.cs b/ProjectCleaningCar/ProjectCleaningCar/Properties/Resources.Designer.cs new file mode 100644 index 0000000..6d3b1db --- /dev/null +++ b/ProjectCleaningCar/ProjectCleaningCar/Properties/Resources.Designer.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace ProjectCleaningCar.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("ProjectCleaningCar.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 _1614525823_30_p_strelka_na_belom_fone__Right_ { + get { + object obj = ResourceManager.GetObject("1614525823_30-p-strelka-na-belom-fone (Right)", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _1614525823_30_p_strelka_na_belom_fone_33__Down_ { + get { + object obj = ResourceManager.GetObject("1614525823_30-p-strelka-na-belom-fone-33 (Down)", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _1614525823_30_p_strelka_na_belom_fone_33__Left_ { + get { + object obj = ResourceManager.GetObject("1614525823_30-p-strelka-na-belom-fone-33 (Left)", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap _1614525823_30_p_strelka_na_belom_fone_33__Up_ { + get { + object obj = ResourceManager.GetObject("1614525823_30-p-strelka-na-belom-fone-33 (Up)", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/ProjectCleaningCar/ProjectCleaningCar/Properties/Resources.resx b/ProjectCleaningCar/ProjectCleaningCar/Properties/Resources.resx new file mode 100644 index 0000000..97f2aba --- /dev/null +++ b/ProjectCleaningCar/ProjectCleaningCar/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\1614525823_30-p-strelka-na-belom-fone-33 (Up).png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\1614525823_30-p-strelka-na-belom-fone-33 (Left).png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\1614525823_30-p-strelka-na-belom-fone-33 (Down).png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\1614525823_30-p-strelka-na-belom-fone (Right).png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/ProjectCleaningCar/ProjectCleaningCar/Resources/1614525823_30-p-strelka-na-belom-fone (Right).png b/ProjectCleaningCar/ProjectCleaningCar/Resources/1614525823_30-p-strelka-na-belom-fone (Right).png new file mode 100644 index 0000000..32e9aa4 Binary files /dev/null and b/ProjectCleaningCar/ProjectCleaningCar/Resources/1614525823_30-p-strelka-na-belom-fone (Right).png differ diff --git a/ProjectCleaningCar/ProjectCleaningCar/Resources/1614525823_30-p-strelka-na-belom-fone-33 (Down).png b/ProjectCleaningCar/ProjectCleaningCar/Resources/1614525823_30-p-strelka-na-belom-fone-33 (Down).png new file mode 100644 index 0000000..d8500e3 Binary files /dev/null and b/ProjectCleaningCar/ProjectCleaningCar/Resources/1614525823_30-p-strelka-na-belom-fone-33 (Down).png differ diff --git a/ProjectCleaningCar/ProjectCleaningCar/Resources/1614525823_30-p-strelka-na-belom-fone-33 (Left).png b/ProjectCleaningCar/ProjectCleaningCar/Resources/1614525823_30-p-strelka-na-belom-fone-33 (Left).png new file mode 100644 index 0000000..b20d386 Binary files /dev/null and b/ProjectCleaningCar/ProjectCleaningCar/Resources/1614525823_30-p-strelka-na-belom-fone-33 (Left).png differ diff --git a/ProjectCleaningCar/ProjectCleaningCar/Resources/1614525823_30-p-strelka-na-belom-fone-33 (Up).png b/ProjectCleaningCar/ProjectCleaningCar/Resources/1614525823_30-p-strelka-na-belom-fone-33 (Up).png new file mode 100644 index 0000000..be7bad3 Binary files /dev/null and b/ProjectCleaningCar/ProjectCleaningCar/Resources/1614525823_30-p-strelka-na-belom-fone-33 (Up).png differ