Exemple #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!this._isDisposed)
     {
         this._isDisposed = true;
         if ((this._inputManager != null) && (this._inputProvider != null))
         {
             this._inputManager.UnregisterInputProvider(this._inputProvider);
         }
         this._inputManager  = null;
         this._inputProvider = null;
     }
 }
Exemple #2
0
 internal InputProviderSite(GHIElectronics.TinyCLR.UI.Input.InputManager inputManager, object inputProvider)
 {
     this._inputManager  = inputManager ?? throw new ArgumentNullException("inputManager");
     this._inputProvider = inputProvider;
 }