Malin D.V. Lab work 5 #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "LabWork_05"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Зачтено с понижением балла(ов)
@ -0,0 +145,4 @@
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void LabelDopColor_DragEnter(object sender, DragEventArgs e)
Логика DragEnter основного цвета идентична логике DragEnter дополнительного цвета и отдельная обработка тут не нужна
@ -0,0 +167,4 @@
{
if (e.Data.GetDataPresent(typeof(Color)))
{
if(warmlyLocomotive.Locomotive is EntityWarmlyLocomotive entityWarmlyLocomotive)
А что мешало в первом if через _locomotive.Locomotive сразу попробовать получить entityWarmlyLocomotive?