небольшие изменения
This commit is contained in:
parent
265eb071be
commit
2db4595ab4
@ -85,7 +85,13 @@
|
||||
panelCompanyTools.Name = "panelCompanyTools";
|
||||
panelCompanyTools.Size = new Size(200, 213);
|
||||
panelCompanyTools.TabIndex = 9;
|
||||
|
||||
//
|
||||
// maskedTextBox
|
||||
//
|
||||
maskedTextBox.Location = new Point(0, 94);
|
||||
maskedTextBox.Name = "maskedTextBox";
|
||||
maskedTextBox.Size = new Size(188, 23);
|
||||
maskedTextBox.TabIndex = 0;
|
||||
//
|
||||
// buttonAddPropelledArtillery
|
||||
//
|
||||
|
@ -174,8 +174,6 @@ public partial class FormPropelledArtilleryConfig : Form
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void groupBoxColors_Enter(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
@ -1,20 +1,3 @@
|
||||
//namespace SelfPropelledArtilleryUnit
|
||||
//{
|
||||
// internal static class Program
|
||||
// {
|
||||
// /// <summary>
|
||||
// /// The main entry point for the application.
|
||||
// /// </summary>
|
||||
// [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 FormPropelledArtilleryCollection());
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Serilog;
|
||||
|
@ -57,45 +57,6 @@ namespace SelfPropelledArtilleryUnit
|
||||
_drawningPropelledArtillery.DrawTransport(gr);
|
||||
pictureBoxSelfPropelledArtilleryUnit.Image = bmp;
|
||||
}
|
||||
//private void CreateObject(string type)
|
||||
//{
|
||||
// Random random = new();
|
||||
// switch (type)
|
||||
// {
|
||||
// case nameof(DrawningPropelledArtillery):
|
||||
// _drawningPropelledArtillery = new DrawningPropelledArtillery(random.Next(100, 300), random.Next(1000, 3000),
|
||||
// Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)));
|
||||
// break;
|
||||
// case nameof(DrawningSelfPropelledArtilleryUnit):
|
||||
// _drawningPropelledArtillery = new DrawningSelfPropelledArtilleryUnit(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)));
|
||||
// break;
|
||||
// default:
|
||||
// return;
|
||||
// }
|
||||
|
||||
// _drawningPropelledArtillery.SetPictureSize(pictureBoxSelfPropelledArtilleryUnit.Width, pictureBoxSelfPropelledArtilleryUnit.Height);
|
||||
// _drawningPropelledArtillery.SetPosition(random.Next(10, 100), random.Next(10, 100));
|
||||
// _strategy = null;
|
||||
// comboBoxStrategy.Enabled = true;
|
||||
// Draw();
|
||||
//}
|
||||
|
||||
///// <summary>
|
||||
///// Обработка нажатия кнопки "Создать самоходную арт.установку"
|
||||
///// </summary>
|
||||
///// <param name="sender"></param>
|
||||
///// <param name="e"></param>
|
||||
//private void buttonCreateSelfPropelledArtilleryUnit_Click(object sender, EventArgs e) => CreateObject(nameof(DrawningSelfPropelledArtilleryUnit));
|
||||
|
||||
///// <summary>
|
||||
///// Обработка нажатия кнопки "Создать бронированную машину"
|
||||
///// </summary>
|
||||
///// <param name="sender"></param>
|
||||
///// <param name="e"></param>
|
||||
//private void buttonCreatePropelledArtillery_Click(object sender, EventArgs e) => CreateObject(nameof(DrawningPropelledArtillery));
|
||||
|
||||
private void ButtonMove_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user