diff --git a/ProjectDumpTruck/ProjectDumpTruck/DirectionType.cs b/ProjectDumpTruck/ProjectDumpTruck/DirectionType.cs deleted file mode 100644 index 770f543..0000000 --- a/ProjectDumpTruck/ProjectDumpTruck/DirectionType.cs +++ /dev/null @@ -1,30 +0,0 @@ -namespace ProjectDumpTruck; - -/// -/// Направление перемещения -/// -public enum DirectionType -{ - /// - /// Вверх - /// - Up = 1, - - /// - /// Вниз - /// - Down = 2, - - /// - /// Влево - /// - Left = 3, - - /// - /// Вправо - /// - Right = 4 - - -} - diff --git a/ProjectDumpTruck/ProjectDumpTruck/DrawningDumpTrack.cs b/ProjectDumpTruck/ProjectDumpTruck/DrawningDumpTrack.cs deleted file mode 100644 index 8cf47ab..0000000 --- a/ProjectDumpTruck/ProjectDumpTruck/DrawningDumpTrack.cs +++ /dev/null @@ -1,431 +0,0 @@ -namespace ProjectDumpTruck; - -/// -/// Класс, отвечающий за прорисовку и перемещение объекта-сущности -/// -public class DrawningDumpTrack -{ - /// - /// Класс-сущность - /// - public EntityDumpTruck? EntityDumpTruck { get; private set; } - - /// - /// Ширина окна - /// - private int? _pictureWidth; - - /// - /// Высота окна - /// - private int? _pictureHeight; - - /// - /// Левая координата прорисовки самосвала - /// - private int? _startPosX; - - /// - /// Верхняя координата прорисовки самосвала - /// - private int? _startPosY; - - /// - /// Ширина прорисовки самосвала - /// - private readonly int _drawningDumpTrackWidth = 130; - - /// - /// Высота прорисовки самосвала - /// - private readonly int _drawningDumpTrackHeight = 90; - - /// - /// Инициализация свойств - /// - /// Скорость - /// Вес - /// Основной цвет - /// Дополнительный цвет - /// Признак наличия кузова - /// Признак наличия тента - - public void Init(int speed, double weight, Color bodyColor, Color additionalColor, bool bodywork, bool awning) - { - EntityDumpTruck = new EntityDumpTruck(); - EntityDumpTruck.Init(speed, weight, bodyColor, additionalColor, bodywork, awning); - _pictureWidth = null; - _pictureHeight = null; - _startPosX = null; - _startPosY = null; - } - - /// - /// Установка границ поля - /// - /// Ширина поля - /// Высота поля - /// true - границы заданы, false - проверка не пройдена, нельзя разместить объект в этих размерах - public bool SetPictureSize( int width, int height) - { - // TODO проверка, что объект "влезает" в размеры поля - // если влезает, сохраняем границы и корректируем позицию объекта, если она была уже установлена - if (_drawningDumpTrackWidth > width) - { - width += _drawningDumpTrackWidth-width; - } - if (_drawningDumpTrackHeight > height) - { - height += _drawningDumpTrackHeight-height; - } - _pictureWidth = width; - _pictureHeight = height; - return true; - } - - /// - /// Установка позиции - /// - /// Координата X - /// Координата Y - public void SetPosition(int x, int y) - { - if (!_pictureHeight.HasValue || !_pictureWidth.HasValue) - { - return; - } - // TODO если при установке объекта в эти координаты, он будет "выходить" за границы формы - // то надо изменить координаты, чтобы он оставался в этих границах - if (x + _drawningDumpTrackWidth > _pictureWidth) - { - x -= _drawningDumpTrackWidth - (int)_pictureWidth; - } - if (y + _drawningDumpTrackHeight > _pictureHeight) - { - y -= _drawningDumpTrackHeight - (int)_pictureHeight; - } - _startPosX = x; - _startPosY = y; - } - /// - /// Изменение направления перемещения - /// - /// Направление - /// true - перемещение выполнено, false - перемещение невозможно - public bool MoveTransport(DirectionType direction) - { - if (EntityDumpTruck == null || !_startPosX.HasValue || !_startPosY.HasValue) - { - return false; - } - - switch (direction) - { - //влево - case DirectionType.Left: - if (_startPosX.Value - EntityDumpTruck.Step > 0) - { - _startPosX -= (int)EntityDumpTruck.Step; - } - return true; - - //вверх - case DirectionType.Up: - if (_startPosY.Value - EntityDumpTruck.Step > 0) - { - _startPosY -= (int)EntityDumpTruck.Step; - } - return true; - - //вправо - case DirectionType.Right: - if (_startPosX.Value + EntityDumpTruck.Step + _drawningDumpTrackWidth < _pictureWidth) - { - _startPosX += (int)EntityDumpTruck.Step; - } - return true; - - //вниз - case DirectionType.Down: - if (_startPosY.Value + EntityDumpTruck.Step + _drawningDumpTrackHeight < _pictureHeight) - { - _startPosY += (int)EntityDumpTruck.Step; - } - return true; - default: - return false; - } - - } - - public void DrawTransport(Graphics g) - { - if (EntityDumpTruck == null || !_startPosX.HasValue || !_startPosY.HasValue) - { - return; - } - - Pen pen = new(Color.Black); - Brush additionalBrush = new SolidBrush(EntityDumpTruck.AdditionalColor); - - //Отрисовка основы (кабины водителя и днища) - Brush body = new SolidBrush(EntityDumpTruck.BodyColor); - g.FillRectangle(body, _startPosX.Value+100, _startPosY.Value, 30, 35); - g.FillRectangle(body, _startPosX.Value, _startPosY.Value + 40, 130, 20); - - //Отрисовка колёс - Brush wheels = new SolidBrush(Color.Gray); - g.FillEllipse(wheels, _startPosX.Value, _startPosY.Value + 60, 30, 30); - g.FillEllipse(wheels, _startPosX.Value+30, _startPosY.Value + 60, 30, 30); - g.FillEllipse(wheels, _startPosX.Value+100, _startPosY.Value + 60, 30, 30); - - //Отрисовка границ - Brush border = new SolidBrush(Color.Black); - g.DrawRectangle(pen, _startPosX.Value+100, _startPosY.Value, 30, 35); - g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 40, 130, 20); - g.DrawEllipse(pen, _startPosX.Value, _startPosY.Value + 60, 30, 30); - g.DrawEllipse(pen, _startPosX.Value+30, _startPosY.Value + 60, 30, 30); - g.DrawEllipse(pen, _startPosX.Value+100, _startPosY.Value + 60, 30, 30); - - //Отрисовка кузова - if (EntityDumpTruck.Bodywork) - { - g.FillRectangle(additionalBrush, _startPosX.Value, _startPosY.Value, 90, 35); - } - - //Отрисовка тента - if (EntityDumpTruck.Bodywork & EntityDumpTruck.Awning) - { - g.FillRectangle(border, _startPosX.Value, _startPosY.Value, 95, 10); - g.FillRectangle(border, _startPosX.Value, _startPosY.Value, 95, 3); - g.FillRectangle(border, _startPosX.Value+30, _startPosY.Value, 3, 40); - g.FillRectangle(border, _startPosX.Value+70, _startPosY.Value, 3, 40); - } - - - } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} - diff --git a/ProjectDumpTruck/ProjectDumpTruck/EntityDumpTruck.cs b/ProjectDumpTruck/ProjectDumpTruck/EntityDumpTruck.cs deleted file mode 100644 index f2794fb..0000000 --- a/ProjectDumpTruck/ProjectDumpTruck/EntityDumpTruck.cs +++ /dev/null @@ -1,65 +0,0 @@ -namespace ProjectDumpTruck; - -/// -/// Класс-сущность "Самосвал" -/// -public class EntityDumpTruck -{ - /// - /// Скорость - /// - 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 Bodywork { get; private set; } - - /// - /// Признак (опция) наличия тента - /// - public bool Awning { get; private set; } - - /// - /// Шаг перемещения самосвала - /// - public double Step => Speed * 100 / Weight; - - /// - /// Инициализация полей объекта-класса самосвала - /// - /// Скорость - /// Вес - /// Основной цвет - /// Дополнительный цвет - /// Признак наличия кузова - /// Признак наличия тента - - public void Init (int speed, double weight, Color bodyColor, Color additionalColor, bool bodywork, bool awning) - { - Speed = speed; - Weight = weight; - BodyColor = bodyColor; - AdditionalColor = additionalColor; - Bodywork = bodywork; - Awning = awning; - } - - - -} diff --git a/ProjectDumpTruck/ProjectDumpTruck/Form1.Designer.cs b/ProjectDumpTruck/ProjectDumpTruck/Form1.Designer.cs new file mode 100644 index 0000000..d42f936 --- /dev/null +++ b/ProjectDumpTruck/ProjectDumpTruck/Form1.Designer.cs @@ -0,0 +1,39 @@ +namespace ProjectDumpTruck +{ + 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/ProjectDumpTruck/ProjectDumpTruck/Form1.cs b/ProjectDumpTruck/ProjectDumpTruck/Form1.cs new file mode 100644 index 0000000..9c65b7c --- /dev/null +++ b/ProjectDumpTruck/ProjectDumpTruck/Form1.cs @@ -0,0 +1,10 @@ +namespace ProjectDumpTruck +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/ProjectDumpTruck/ProjectDumpTruck/FormTransport.resx b/ProjectDumpTruck/ProjectDumpTruck/Form1.resx similarity index 93% rename from ProjectDumpTruck/ProjectDumpTruck/FormTransport.resx rename to ProjectDumpTruck/ProjectDumpTruck/Form1.resx index af32865..1af7de1 100644 --- a/ProjectDumpTruck/ProjectDumpTruck/FormTransport.resx +++ b/ProjectDumpTruck/ProjectDumpTruck/Form1.resx @@ -1,17 +1,17 @@  - diff --git a/ProjectDumpTruck/ProjectDumpTruck/FormTransport.Designer.cs b/ProjectDumpTruck/ProjectDumpTruck/FormTransport.Designer.cs deleted file mode 100644 index ab23f41..0000000 --- a/ProjectDumpTruck/ProjectDumpTruck/FormTransport.Designer.cs +++ /dev/null @@ -1,134 +0,0 @@ -namespace ProjectDumpTruck -{ - partial class FormTransport - { - /// - /// 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() - { - pictureBoxDumpTrack = new PictureBox(); - buttonCreateDumpTrack = new Button(); - buttonLeft = new Button(); - buttonRight = new Button(); - buttonUp = new Button(); - buttonDown = new Button(); - ((System.ComponentModel.ISupportInitialize)pictureBoxDumpTrack).BeginInit(); - SuspendLayout(); - // - // pictureBoxDumpTrack - // - pictureBoxDumpTrack.Dock = DockStyle.Fill; - pictureBoxDumpTrack.Location = new Point(0, 0); - pictureBoxDumpTrack.Name = "pictureBoxDumpTrack"; - pictureBoxDumpTrack.Size = new Size(800, 450); - pictureBoxDumpTrack.TabIndex = 0; - pictureBoxDumpTrack.TabStop = false; - // - // buttonCreateDumpTrack - // - buttonCreateDumpTrack.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; - buttonCreateDumpTrack.Location = new Point(12, 409); - buttonCreateDumpTrack.Name = "buttonCreateDumpTrack"; - buttonCreateDumpTrack.Size = new Size(94, 29); - buttonCreateDumpTrack.TabIndex = 1; - buttonCreateDumpTrack.Text = "Создать"; - buttonCreateDumpTrack.UseVisualStyleBackColor = true; - buttonCreateDumpTrack.Click += buttonCreateDumpTrack_Click; - // - // buttonLeft - // - buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; - buttonLeft.BackgroundImage = Properties.Resources.left1; - buttonLeft.BackgroundImageLayout = ImageLayout.Stretch; - buttonLeft.Location = new Point(670, 403); - buttonLeft.Name = "buttonLeft"; - buttonLeft.Size = new Size(35, 35); - buttonLeft.TabIndex = 2; - buttonLeft.UseVisualStyleBackColor = true; - buttonLeft.Click += buttonMove_Click; - // - // buttonRight - // - buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; - buttonRight.BackgroundImage = Properties.Resources.right; - buttonRight.BackgroundImageLayout = ImageLayout.Stretch; - buttonRight.Location = new Point(752, 403); - buttonRight.Name = "buttonRight"; - buttonRight.Size = new Size(35, 35); - buttonRight.TabIndex = 3; - buttonRight.UseVisualStyleBackColor = true; - buttonRight.Click += buttonMove_Click; - // - // buttonUp - // - buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; - buttonUp.BackgroundImage = Properties.Resources.up1; - buttonUp.BackgroundImageLayout = ImageLayout.Stretch; - buttonUp.Location = new Point(711, 362); - buttonUp.Name = "buttonUp"; - buttonUp.Size = new Size(35, 35); - buttonUp.TabIndex = 4; - buttonUp.UseVisualStyleBackColor = true; - buttonUp.Click += buttonMove_Click; - // - // buttonDown - // - buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; - buttonDown.BackgroundImage = Properties.Resources.down1; - buttonDown.BackgroundImageLayout = ImageLayout.Stretch; - buttonDown.Location = new Point(711, 403); - buttonDown.Name = "buttonDown"; - buttonDown.Size = new Size(35, 35); - buttonDown.TabIndex = 5; - buttonDown.UseVisualStyleBackColor = true; - buttonDown.Click += buttonMove_Click; - // - // FormTransport - // - AutoScaleDimensions = new SizeF(7F, 15F); - AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(800, 450); - Controls.Add(buttonDown); - Controls.Add(buttonUp); - Controls.Add(buttonRight); - Controls.Add(buttonLeft); - Controls.Add(buttonCreateDumpTrack); - Controls.Add(pictureBoxDumpTrack); - Name = "FormTransport"; - Text = "FormTransport"; - ((System.ComponentModel.ISupportInitialize)pictureBoxDumpTrack).EndInit(); - ResumeLayout(false); - } - - #endregion - - private PictureBox pictureBoxDumpTrack; - private Button buttonCreateDumpTrack; - internal Button buttonLeft; - internal Button buttonRight; - internal Button buttonUp; - internal Button buttonDown; - } -} \ No newline at end of file diff --git a/ProjectDumpTruck/ProjectDumpTruck/FormTransport.cs b/ProjectDumpTruck/ProjectDumpTruck/FormTransport.cs deleted file mode 100644 index 2aabf3f..0000000 --- a/ProjectDumpTruck/ProjectDumpTruck/FormTransport.cs +++ /dev/null @@ -1,91 +0,0 @@ -/// -/// Форма работы с объектом "Самосвал" -/// -namespace ProjectDumpTruck -{ - public partial class FormTransport : Form - { - /// - /// Поле-объект для прорисовки объекта - /// - private DrawningDumpTrack? _drawningDumpTrack; - - /// - /// Конструктор формы - /// - public FormTransport() - { - InitializeComponent(); - } - - /// - /// Метод прорисовки машины - /// - private void Draw() - { - if (_drawningDumpTrack == null) - { - return; - } - - Bitmap bmp = new(pictureBoxDumpTrack.Width, pictureBoxDumpTrack.Height); - Graphics gr = Graphics.FromImage(bmp); - _drawningDumpTrack.DrawTransport(gr); - pictureBoxDumpTrack.Image = bmp; - } - - /// - /// Обработка нажатия кнопки "Создать" - /// - /// - /// - private void buttonCreateDumpTrack_Click(object sender, EventArgs e) - { - Random random = new(); - _drawningDumpTrack = new DrawningDumpTrack(); - _drawningDumpTrack.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))); - _drawningDumpTrack.SetPictureSize(pictureBoxDumpTrack.Width, pictureBoxDumpTrack.Height); - _drawningDumpTrack.SetPosition(random.Next(10, 100), random.Next(10, 100)); - - Draw(); - } - - /// - /// Перемещение объекта по форме (нажатие кнопок навигации) - /// - /// - /// - private void buttonMove_Click(object sender, EventArgs e) - { - if (_drawningDumpTrack == null) - { - return; - } - - string name = ((Button)sender)?.Name ?? string.Empty; - bool result = false; - switch (name) - { - case "buttonUp": - result = _drawningDumpTrack.MoveTransport(DirectionType.Up); - break; - case "buttonDown": - result = _drawningDumpTrack.MoveTransport(DirectionType.Down); - break; - case "buttonLeft": - result = _drawningDumpTrack.MoveTransport(DirectionType.Left); - break; - case "buttonRight": - result = _drawningDumpTrack.MoveTransport(DirectionType.Right); - break; - } - if (result) - { - Draw(); - } - } - } -} diff --git a/ProjectDumpTruck/ProjectDumpTruck/Program.cs b/ProjectDumpTruck/ProjectDumpTruck/Program.cs index b5d5161..9977de0 100644 --- a/ProjectDumpTruck/ProjectDumpTruck/Program.cs +++ b/ProjectDumpTruck/ProjectDumpTruck/Program.cs @@ -11,7 +11,7 @@ namespace ProjectDumpTruck // To customize application configuration such as set high DPI settings or default font, // see https://aka.ms/applicationconfiguration. ApplicationConfiguration.Initialize(); - Application.Run(new FormTransport()); + Application.Run(new Form1()); } } } \ No newline at end of file diff --git a/ProjectDumpTruck/ProjectDumpTruck/ProjectDumpTruck.csproj b/ProjectDumpTruck/ProjectDumpTruck/ProjectDumpTruck.csproj index 13ee123..e1a0735 100644 --- a/ProjectDumpTruck/ProjectDumpTruck/ProjectDumpTruck.csproj +++ b/ProjectDumpTruck/ProjectDumpTruck/ProjectDumpTruck.csproj @@ -2,25 +2,10 @@ WinExe - net6.0-windows + net7.0-windows enable true enable - - - True - True - Resources.resx - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - - - \ No newline at end of file diff --git a/ProjectDumpTruck/ProjectDumpTruck/Properties/Resources.Designer.cs b/ProjectDumpTruck/ProjectDumpTruck/Properties/Resources.Designer.cs deleted file mode 100644 index e22756d..0000000 --- a/ProjectDumpTruck/ProjectDumpTruck/Properties/Resources.Designer.cs +++ /dev/null @@ -1,133 +0,0 @@ -//------------------------------------------------------------------------------ -// -// Этот код создан программой. -// Исполняемая версия:4.0.30319.42000 -// -// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае -// повторной генерации кода. -// -//------------------------------------------------------------------------------ - -namespace ProjectDumpTruck.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("ProjectDumpTruck.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 down1 { - get { - object obj = ResourceManager.GetObject("down1", 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 left1 { - get { - object obj = ResourceManager.GetObject("left1", 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)); - } - } - - /// - /// Поиск локализованного ресурса типа System.Drawing.Bitmap. - /// - internal static System.Drawing.Bitmap up1 { - get { - object obj = ResourceManager.GetObject("up1", resourceCulture); - return ((System.Drawing.Bitmap)(obj)); - } - } - } -} diff --git a/ProjectDumpTruck/ProjectDumpTruck/Properties/Resources.resx b/ProjectDumpTruck/ProjectDumpTruck/Properties/Resources.resx deleted file mode 100644 index 11db3f6..0000000 --- a/ProjectDumpTruck/ProjectDumpTruck/Properties/Resources.resx +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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\left1.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\left.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\up.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\down1.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\down.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\right.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - - ..\Resources\up1.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a - - \ No newline at end of file diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/down.jpg b/ProjectDumpTruck/ProjectDumpTruck/Resources/down.jpg deleted file mode 100644 index 955c19a..0000000 Binary files a/ProjectDumpTruck/ProjectDumpTruck/Resources/down.jpg and /dev/null differ diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/down1.jpg b/ProjectDumpTruck/ProjectDumpTruck/Resources/down1.jpg deleted file mode 100644 index 4e88111..0000000 Binary files a/ProjectDumpTruck/ProjectDumpTruck/Resources/down1.jpg and /dev/null differ diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/left.jpg b/ProjectDumpTruck/ProjectDumpTruck/Resources/left.jpg deleted file mode 100644 index d38fedb..0000000 Binary files a/ProjectDumpTruck/ProjectDumpTruck/Resources/left.jpg and /dev/null differ diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/left1.jpg b/ProjectDumpTruck/ProjectDumpTruck/Resources/left1.jpg deleted file mode 100644 index 962723e..0000000 Binary files a/ProjectDumpTruck/ProjectDumpTruck/Resources/left1.jpg and /dev/null differ diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/right.jpg b/ProjectDumpTruck/ProjectDumpTruck/Resources/right.jpg deleted file mode 100644 index d38fedb..0000000 Binary files a/ProjectDumpTruck/ProjectDumpTruck/Resources/right.jpg and /dev/null differ diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/up.jpg b/ProjectDumpTruck/ProjectDumpTruck/Resources/up.jpg deleted file mode 100644 index 99032e7..0000000 Binary files a/ProjectDumpTruck/ProjectDumpTruck/Resources/up.jpg and /dev/null differ diff --git a/ProjectDumpTruck/ProjectDumpTruck/Resources/up1.jpg b/ProjectDumpTruck/ProjectDumpTruck/Resources/up1.jpg deleted file mode 100644 index 561c4cb..0000000 Binary files a/ProjectDumpTruck/ProjectDumpTruck/Resources/up1.jpg and /dev/null differ