AcManager.Pages.Windows.MainWindow.TitleLinkDrive_OnDrop C# (CSharp) Method

TitleLinkDrive_OnDrop() private method

private TitleLinkDrive_OnDrop ( object sender, System.Windows.DragEventArgs e ) : void
sender object
e System.Windows.DragEventArgs
return void
        private void TitleLinkDrive_OnDrop(object sender, DragEventArgs e) {
            var raceGridEntry = e.Data.GetData(RaceGridEntry.DraggableFormat) as RaceGridEntry;
            var carObject = e.Data.GetData(CarObject.DraggableFormat) as CarObject;

            if (raceGridEntry == null && carObject == null) {
                e.Effects = DragDropEffects.None;
                return;
            }

            QuickDrive.Show(carObject ?? raceGridEntry.Car, raceGridEntry?.CarSkin?.Id);
            e.Effects = DragDropEffects.Copy;
        }
    }