//コンストラクタ 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; } }