private void panelConnection_DragDrop(object sender, DragEventArgs e)
        {
            if (e.Data.GetData(typeof(MenuComputerElement)) is MenuComputerElement)
            {
                var point = DragAndDropController.ConvertPoint(e.X, e.Y);
                panelConnection.Controls.Add(new Computer(50, 50, ImageController.Open("computer.svg") as Image, Element_MouseDown, point.X - 25, point.Y - 25, 1));
            }
            else if (e.Data.GetData(typeof(MenuRouterElement)) is MenuRouterElement)
            {
                var point = DragAndDropController.ConvertPoint(e.X, e.Y);
                panelConnection.Controls.Add(new Router(50, 50, ImageController.Open("router.svg") as Image, Element_MouseDown, point.X - 25, point.Y - 25, 8));
            }
            else if (e.Data.GetData(typeof(Computer)) is Computer)
            {
                var point = DragAndDropController.ConvertPoint(e.X - DragAndDropController.DraggedObject.Width / 2, e.Y - DragAndDropController.DraggedObject.Height / 2);

                DragAndDropController.DraggedObject.Location = point;
            }

            StopDragAndDrop();
        }
 private void ButtonPK_MouseDown(object sender, MouseEventArgs e)
 {
     DragAndDropController.MouseDown(sender);
 }
 private void StopDragAndDrop()
 {
     DragAndDropController.ResetPanel();
 }