//コンストラクタ public DragDropDecoratorController(IInputModel inputModel, KinectRegion kinectRegion) { _inputModel = inputModel as ManipulatableModel; _kinectRegion = kinectRegion; _dragDropDecorator = inputModel.Element as DragDropDecorator; _inputModel.ManipulationUpdated += inputModel_ManipulationUpdated; }
void System.IDisposable.Dispose() { if (!_disposed) { _kinectRegion = null; _inputModel = null; _dragDropDecorator = null; _inputModel.ManipulationUpdated -= inputModel_ManipulationUpdated; _disposed = true; } }