Изменил выбор цвета

This commit is contained in:
Ctepa 2024-04-07 22:31:10 +03:00
parent 9e6472cf47
commit a5dec11857

View File

@ -102,7 +102,7 @@ public partial class FormGunConfig : Form
private void Panel_MouseDown(object? sender, MouseEventArgs e)
{
// TODO реализовать выбор цвета
(sender as Control)?.DoDragDrop((sender as Control).BackColor, DragDropEffects.Move | DragDropEffects.Copy);
(sender as Control)?.DoDragDrop((sender as Control)?.BackColor ?? Color.Black, DragDropEffects.Move | DragDropEffects.Copy);
}
/// <summary>
/// Передача объекта