ICDEMainPage..::..GotoStationHome Method
Implements a transition to the Home Screen of the Station or User. If no user is logged on it should go to the designated Station Home Page
Example:
if (MyUserManager.LoggedOnUser == null)
{
string tScreen = "";
if (TheBaseAssets.MyServiceHostInfo.StartupEngines.Count > 0)
{
IBaseEngine tBase = TheThingRegistry.GetBaseEngine(TheBaseAssets.MyServiceHostInfo.StartupEngines[0]);
if (tBase != null)
tScreen = tBase.GetDashboard();
}
if (!string.IsNullOrEmpty(tScreen))
return TransitToScreen(tScreen.ToString());
else
return TransitToScreen(TheCDEngines.MyNMIService.MyNMIModel.MainDashboardScreen.ToString());
}
else
{
string iTargetHomeScreen = TheBaseAssets.MyApplication.MyUserManager.GetUsersHomeScreen();
if (string.IsNullOrEmpty(iTargetHomeScreen))
iTargetHomeScreen = TheCDEngines.MyNMIService.MyNMIModel.MainDashboardScreen.ToString();
return TransitToScreen(iTargetHomeScreen);
}
Namespace:
nsCDEngine.Engines.NMIServiceAssembly: C-DEngine (in C-DEngine.dll)