Example #1
0
 public void RegisterActiveQuadUpdateHandler(IView registerView, ActiveQuadsUpdateHandler updateHandler)
 {
     if (this.ViewHandlerMappers.ContainsKey(registerView))
     {
         this.ViewHandlerMappers[registerView].ActiveQuadsHandler = updateHandler;
     }
     else
     {
         throw new ViewNotRegisteredException("Unable to assign updateHandler View : " + registerView.ToString() + " not registered with " + this.ToString());
     }
 }
 public void RegisterActiveQuadUpdateHandler(IView registerView, ActiveQuadsUpdateHandler updateHandler)
 {
     if (this.ViewHandlerMappers.ContainsKey(registerView))
     {
         this.ViewHandlerMappers[registerView].ActiveQuadsHandler = updateHandler;
     }
     else
     {
         throw new ViewNotRegisteredException("Unable to assign updateHandler View : " + registerView.ToString() + " not registered with " + this.ToString());
     }
 }