diff --git a/WarmlyLocomotive/FormWarmlyLocomotive.Designer.cs b/WarmlyLocomotive/FormWarmlyLocomotive.Designer.cs index 3d26f02..50e4c95 100644 --- a/WarmlyLocomotive/FormWarmlyLocomotive.Designer.cs +++ b/WarmlyLocomotive/FormWarmlyLocomotive.Designer.cs @@ -1,6 +1,6 @@ namespace WarmlyLocomotive { - partial class Тепловоз + partial class FormWarmlyLocomotive { /// /// Required designer variable. @@ -28,18 +28,106 @@ /// private void InitializeComponent() { + pictureBox1 = new PictureBox(); + createButton = new Button(); + buttonUp = new Button(); + buttonDown = new Button(); + buttonLeft = new Button(); + buttonRight = new Button(); + ((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit(); SuspendLayout(); // - // Тепловоз + // pictureBox1 + // + pictureBox1.Dock = DockStyle.Fill; + pictureBox1.Location = new Point(0, 0); + pictureBox1.Name = "pictureBox1"; + pictureBox1.Size = new Size(884, 461); + pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize; + pictureBox1.TabIndex = 0; + pictureBox1.TabStop = false; + // + // createButton + // + createButton.Anchor = AnchorStyles.Bottom | AnchorStyles.Left; + createButton.Location = new Point(12, 426); + createButton.Name = "createButton"; + createButton.Size = new Size(75, 23); + createButton.TabIndex = 1; + createButton.Text = "Создать"; + createButton.UseVisualStyleBackColor = true; + // + // buttonUp + // + buttonUp.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonUp.BackgroundImage = Properties.Resources.UpArrow; + buttonUp.BackgroundImageLayout = ImageLayout.Zoom; + buttonUp.Location = new Point(794, 366); + buttonUp.Name = "buttonUp"; + buttonUp.Size = new Size(35, 35); + buttonUp.TabIndex = 2; + buttonUp.UseVisualStyleBackColor = true; + // + // buttonDown + // + buttonDown.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonDown.BackgroundImage = Properties.Resources.DownArrow; + buttonDown.BackgroundImageLayout = ImageLayout.Zoom; + buttonDown.Location = new Point(794, 407); + buttonDown.Name = "buttonDown"; + buttonDown.Size = new Size(35, 35); + buttonDown.TabIndex = 3; + buttonDown.UseVisualStyleBackColor = true; + // + // buttonLeft + // + buttonLeft.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonLeft.AutoEllipsis = true; + buttonLeft.BackgroundImage = Properties.Resources.LeftArrow; + buttonLeft.BackgroundImageLayout = ImageLayout.Zoom; + buttonLeft.Location = new Point(753, 407); + buttonLeft.Name = "buttonLeft"; + buttonLeft.Size = new Size(35, 35); + buttonLeft.TabIndex = 4; + buttonLeft.UseVisualStyleBackColor = true; + // + // buttonRight + // + buttonRight.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + buttonRight.BackgroundImage = Properties.Resources.RightArrow; + buttonRight.BackgroundImageLayout = ImageLayout.Stretch; + buttonRight.Location = new Point(837, 407); + buttonRight.Name = "buttonRight"; + buttonRight.Size = new Size(35, 35); + buttonRight.TabIndex = 5; + buttonRight.UseVisualStyleBackColor = true; + // + // FormWarmlyLocomotive // AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(800, 450); - Name = "Тепловоз"; - Text = "FormWarmlyLocomotive"; + ClientSize = new Size(884, 461); + Controls.Add(buttonRight); + Controls.Add(buttonLeft); + Controls.Add(buttonDown); + Controls.Add(buttonUp); + Controls.Add(createButton); + Controls.Add(pictureBox1); + Name = "FormWarmlyLocomotive"; + StartPosition = FormStartPosition.CenterScreen; + Text = "Тепловоз"; + ((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit(); ResumeLayout(false); + PerformLayout(); } #endregion + + private PictureBox pictureBox1; + private Button createButton; + private Button buttonUp; + private Button buttonDown; + private Button buttonLeft; + private Button buttonRight; } } \ No newline at end of file diff --git a/WarmlyLocomotive/FormWarmlyLocomotive.cs b/WarmlyLocomotive/FormWarmlyLocomotive.cs index b01821c..04f417e 100644 --- a/WarmlyLocomotive/FormWarmlyLocomotive.cs +++ b/WarmlyLocomotive/FormWarmlyLocomotive.cs @@ -10,9 +10,9 @@ using System.Windows.Forms; namespace WarmlyLocomotive { - public partial class Тепловоз : Form + public partial class FormWarmlyLocomotive : Form { - public Тепловоз() + public FormWarmlyLocomotive() { InitializeComponent(); } diff --git a/WarmlyLocomotive/Program.cs b/WarmlyLocomotive/Program.cs index 1edb8df..b972d2a 100644 --- a/WarmlyLocomotive/Program.cs +++ b/WarmlyLocomotive/Program.cs @@ -11,7 +11,7 @@ namespace WarmlyLocomotive // 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 FormWarmlyLocomotive()); } } } \ No newline at end of file diff --git a/WarmlyLocomotive/Properties/Resources.Designer.cs b/WarmlyLocomotive/Properties/Resources.Designer.cs new file mode 100644 index 0000000..b5df428 --- /dev/null +++ b/WarmlyLocomotive/Properties/Resources.Designer.cs @@ -0,0 +1,103 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программой. +// Исполняемая версия:4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае +// повторной генерации кода. +// +//------------------------------------------------------------------------------ + +namespace WarmlyLocomotive.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("WarmlyLocomotive.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 DownArrow { + get { + object obj = ResourceManager.GetObject("DownArrow", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap LeftArrow { + get { + object obj = ResourceManager.GetObject("LeftArrow", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap RightArrow { + get { + object obj = ResourceManager.GetObject("RightArrow", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Поиск локализованного ресурса типа System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap UpArrow { + get { + object obj = ResourceManager.GetObject("UpArrow", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + } +} diff --git a/WarmlyLocomotive/Properties/Resources.resx b/WarmlyLocomotive/Properties/Resources.resx new file mode 100644 index 0000000..3a7f324 --- /dev/null +++ b/WarmlyLocomotive/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\DownArrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\LeftArrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\RightArrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\UpArrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + \ No newline at end of file diff --git a/WarmlyLocomotive/Resources/DownArrow.png b/WarmlyLocomotive/Resources/DownArrow.png new file mode 100644 index 0000000..92f4637 Binary files /dev/null and b/WarmlyLocomotive/Resources/DownArrow.png differ diff --git a/WarmlyLocomotive/Resources/LeftArrow.png b/WarmlyLocomotive/Resources/LeftArrow.png new file mode 100644 index 0000000..99a7cfc Binary files /dev/null and b/WarmlyLocomotive/Resources/LeftArrow.png differ diff --git a/WarmlyLocomotive/Resources/RightArrow.png b/WarmlyLocomotive/Resources/RightArrow.png new file mode 100644 index 0000000..09c029b Binary files /dev/null and b/WarmlyLocomotive/Resources/RightArrow.png differ diff --git a/WarmlyLocomotive/Resources/UpArrow.png b/WarmlyLocomotive/Resources/UpArrow.png new file mode 100644 index 0000000..720801c Binary files /dev/null and b/WarmlyLocomotive/Resources/UpArrow.png differ diff --git a/WarmlyLocomotive/WarmlyLocomotive.csproj b/WarmlyLocomotive/WarmlyLocomotive.csproj index e1a0735..244387d 100644 --- a/WarmlyLocomotive/WarmlyLocomotive.csproj +++ b/WarmlyLocomotive/WarmlyLocomotive.csproj @@ -8,4 +8,19 @@ enable + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + + + \ No newline at end of file