public void RegisterToUpdate(IViewController updater) { if (!this.registeredControllers.Contains(updater)) { this.registeredControllers.Add(updater); } else { throw new UICtrlAlreadyRegisteredException("UI controller " + updater.ToString() + " already registered"); } }
public void ChangeActiveMode(Modes newMode, IViewController updater) { //Set the modes status to Requested; if (this.registeredControllers.Contains(updater)) { this.ActiveMode = newMode; this.Status = ExecutionStatus.Requested; } else { throw new UICtrlNotRegisteredException("UI controller " + updater.ToString() +" not registerd"); } }
public void ChangeActiveMode(Modes newMode, IViewController updater) { //Set the modes status to Requested; if (this.registeredControllers.Contains(updater)) { this.ActiveMode = newMode; this.Status = ExecutionStatus.Requested; } else { throw new UICtrlNotRegisteredException("UI controller " + updater.ToString() + " not registerd"); } }
public void RegisterToUpdate(IViewController updater) { if (!this.registeredControllers.Contains(updater)) { this.registeredControllers.Add(updater); } else { throw new UICtrlAlreadyRegisteredException("UI controller " + updater.ToString() +" already registered"); } }
public void RegisterViewController(IViewController controller) { if (controller == null) { throw new ArgumentNullException("view controller"); } if (_controllers.Contains(controller)) { throw new InvalidOperationException(string.Format("A view controller with name {0} is already registered. Choose another view controller.", controller.ToString())); } _controllers.Add(controller); }