C-DEngine 5.105

ICDEMainPage Members

The ICDEMainPage type exposes the following members.

Methods


  Name Description
Public method Equals(System.Object) (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GotoStationHome
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); }
Protected method MemberwiseClone (Inherited from Object.)
Public method ShowMessageToast
Show an information Toast on the screen
Public method ToString (Inherited from Object.)
Public method TransitToScreen
Implement a Screen Transition on Clients Example: if (TheCDEngines.MyNMIService != null) { if (pTargetScreen == TheCDEngines.MyNMIService.MyNMIModel.MyCurrentScreen || string.IsNullOrEmpty(pTargetScreen)) return; if (pTargetScreen.Equals("BACK")) ((Windows.UI.Xaml.Controls.Frame)Window.Current.Content).GoBack(); else ((Windows.UI.Xaml.Controls.Frame)Window.Current.Content).Navigate(typeof(nsCDEngine.Engines.NMIService.ICDEMainPage), pTargetScreen); if (TheNMIScreen.TransitToScreen(pTargetScreen)) { TheCDEngines.MyNMIService.MyNMIModel.MyLastScreen = TheCDEngines.MyNMIService.MyNMIModel.MyCurrentScreen; TheCDEngines.MyNMIService.MyNMIModel.MyCurrentScreen = pTargetScreen; } }