Done
This commit is contained in:
parent
484d9e6cba
commit
29cd0d9ced
@ -1,6 +1,6 @@
|
||||
namespace ProjStormtrooper
|
||||
{
|
||||
partial class PlaneConfig
|
||||
partial class FormPlaneConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
@ -10,7 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace ProjStormtrooper
|
||||
{
|
||||
public partial class PlaneConfig : Form
|
||||
public partial class FormPlaneConfig : Form
|
||||
{
|
||||
/// <summary>
|
||||
/// Переменная-выбранный самолет
|
||||
@ -20,7 +20,7 @@ namespace ProjStormtrooper
|
||||
/// Событие
|
||||
/// </summary>
|
||||
private event Action<DrawingPlane>? EventAddPlane;
|
||||
public PlaneConfig()
|
||||
public FormPlaneConfig()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
@ -123,5 +123,20 @@ namespace ProjStormtrooper
|
||||
(_plane.EntityPlane as EntityStormtrooper).SetAdditionalColor((Color)e.Data.GetData(typeof(Color).ToString()));
|
||||
DrawPlane();
|
||||
}
|
||||
|
||||
private void labelStormtrooper_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void panelColorRed_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void panelColorYellow_Paint(object sender, PaintEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -95,7 +95,7 @@ namespace ProjStormtrooper
|
||||
/// <param name="e"></param>
|
||||
private void buttonAddPlane_Click(object sender, EventArgs e)
|
||||
{
|
||||
var formPlaneConfig = new PlaneConfig();
|
||||
var formPlaneConfig = new FormPlaneConfig();
|
||||
formPlaneConfig.AddEvent(AddPlaneListener);
|
||||
formPlaneConfig.Show();
|
||||
}
|
||||
@ -207,5 +207,9 @@ namespace ProjStormtrooper
|
||||
}
|
||||
}
|
||||
}
|
||||
private void openFileDialog_FileOk(object sender, CancelEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ namespace ProjStormtrooper
|
||||
return true;
|
||||
}
|
||||
/// <summary>
|
||||
/// Загрузка информации по самолету в хранилище из файла
|
||||
/// Загрузка информации по автомобилям в хранилище из файла
|
||||
/// </summary>
|
||||
/// <param name="filename">Путь и имя файла</param>
|
||||
/// <returns>true - загрузка прошла успешно, false - ошибка при загрузке данных</returns>
|
||||
|
Loading…
x
Reference in New Issue
Block a user