public static string GetSunStatusMessage(ToolbarType toolbarType, SunStudyData sunStudyData) { // Set status message if sun study dials are open string statusMessage = toolbarType == ToolbarType.AltitudeAzimuthDial ? AltitudeAzimuthRadialUIController.GetAltAzStatusMessage(sunStudyData) : toolbarType == ToolbarType.TimeOfDayYearDial ? TimeRadialUIController.GetTimeStatusMessage(sunStudyData) : String.Empty; return(statusMessage); }
void OnSecondaryButtonClicked() { UIStateManager.current.Dispatcher.Dispatch(Payload <ActionTypes> .From(ActionTypes.SetSunStudyMode, true)); UIStateManager.current.Dispatcher.Dispatch(Payload <ActionTypes> .From(ActionTypes.SetActiveToolbar, ToolbarType.AltitudeAzimuthDial)); var toolState = UIStateManager.current.stateData.toolState; toolState.activeTool = ToolType.SunstudyTool; UIStateManager.current.Dispatcher.Dispatch(Payload <ActionTypes> .From(ActionTypes.SetToolState, toolState)); var sunStudyData = UIStateManager.current.stateData.sunStudyData; UIStateManager.current.Dispatcher.Dispatch(Payload <ActionTypes> .From(ActionTypes.SetStatus, AltitudeAzimuthRadialUIController.GetAltAzStatusMessage(sunStudyData))); }