/// <summary> /// Gets a value indicating if this instance has a controller /// in the specified <paramref name="questionedMode"/> as a child or model. /// </summary> /// <param name="questionedMode">The questioned mode.</param> /// <returns>true if this instance has a controller in the desired mode, false if not.</returns> public virtual bool HasControllerInMode(Controller.Mode questionedMode) { if (_controller.ControllerMode == questionedMode) { return(true); } return(_childs.Any(childViewModel => childViewModel.HasControllerInMode(questionedMode))); }
public Task SetControllerToMode(string moduleName, int controllerId, Controller.Mode mode) { return(Task.Run(() => { })); }