public void DragCallback(DragCallback callback) { switch (callback.Type) { case DragCallbackType.Image: UploadImage(callback.Image); break; } }