красота
This commit is contained in:
parent
b690a64854
commit
dbe3954a21
@ -21,12 +21,10 @@ public partial class FormStormtrooperConfig : Form
|
||||
/// </summary>
|
||||
private DrawningBaseStormtrooper? _drawningBaseStormtrooper;
|
||||
private event Action<DrawningBaseStormtrooper>? _stormtrooperDelegate;
|
||||
|
||||
/// <summary>
|
||||
/// Событие для передачи объекта
|
||||
/// </summary>
|
||||
|
||||
//private event StormtooperDelegate? _stormtooperDelegate;
|
||||
|
||||
public void AddEvent(Action<DrawningBaseStormtrooper> stormtrooperDelegate)
|
||||
{
|
||||
if (_stormtrooperDelegate == null)
|
||||
@ -57,14 +55,7 @@ public partial class FormStormtrooperConfig : Form
|
||||
buttonCancel.Click += (sender, e) => Close();
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// Привязка внешнего метода к событию
|
||||
/// </summary>
|
||||
/// <param name="stormtooperDelegate"></param>
|
||||
//public void AddEvent(StormtooperDelegate stormtooperDelegate)
|
||||
//{
|
||||
// _stormtooperDelegate += stormtooperDelegate;
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// Прорисовка объекта
|
||||
/// </summary>
|
||||
@ -120,8 +111,6 @@ public partial class FormStormtrooperConfig : Form
|
||||
(sender as Control)?.DoDragDrop((sender as Control).BackColor, DragDropEffects.Move | DragDropEffects.Copy);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//TODO реализовать логику смены цветов: основного и дополнительного ( для продвинутого объекта)
|
||||
private void labelBodyColor_DragEnter(object? sender, DragEventArgs e)
|
||||
{
|
||||
|
@ -1,8 +0,0 @@
|
||||
using ProjectStormtrooper.Drawnings;
|
||||
|
||||
namespace ProjectStormtrooper;
|
||||
/// <summary>
|
||||
/// Делегат передачи объекта-прорисовки
|
||||
/// </summary>
|
||||
/// <param name="stormtrooper"></param>
|
||||
public delegate void StormtooperDelegate(DrawningBaseStormtrooper stormtrooper);
|
Loading…
x
Reference in New Issue
Block a user