This commit is contained in:
Baryshev Dmitry 2024-05-15 15:23:27 +04:00
parent 8bab8db58c
commit fef842950e

View File

@ -114,47 +114,7 @@ public partial class FormTruckConfig : Form
DrawObject();
}
//допка
//private void LabelObject_MouseDown(object sender, MouseEventArgs e)
//{
// Label? label = sender as Label;
// if (label?.Name == "labelSimpleObject")
// {
// label?.DoDragDrop(new DrawningTruck((int)numericUpDownSpeed.Value,
// (double)numericUpDownWeight.Value, Color.White), DragDropEffects.Copy);
// }
// else
// {
// label?.DoDragDrop(new DrawningDumpTruck((int)numericUpDownSpeed.Value,
// (double)numericUpDownWeight.Value, Color.White, Color.Black, checkBoxAwning.Checked, checkBoxTent.Checked), DragDropEffects.Copy);
// }
//}
//private void PanelObject_DragDrop(object sender, DragEventArgs e)
//{
// if ((DrawningTruck?)e.Data.GetData(typeof(DrawningTruck)) != null)
// {
// _truck = (DrawningTruck?)e.Data.GetData(typeof(DrawningTruck));
// }
// else if ((DrawningDumpTruck?)e.Data.GetData(typeof(DrawningDumpTruck)) != null)
// {
// _truck = (DrawningDumpTruck?)e.Data.GetData(typeof(DrawningDumpTruck));
// }
// DrawObject();
//}
//private void PanelObject_DragEnter(object sender, DragEventArgs e)
//{
// if ((e.Data.GetDataPresent(typeof(DrawningTruck))) || e.Data.GetDataPresent(typeof(DrawningDumpTruck)))
// {
// e.Effect = DragDropEffects.Copy;
// }
// else
// {
// e.Effect = DragDropEffects.None;
// }
//}
/// <summary>
/// Панель отправка цвета при нажатии на Panel