internal ComponentStateManger(Type ctype, string id, ComponentBasedApplication parent)
 {
     ComponentClassType = ctype;
     ComponentId        = id;
     ComponentInstances = new List <BaseComponent>();
     Parent             = parent;
 }
Example #2
0
 internal void Bind(IntPtr handle, string compId, string instanceId, ComponentBasedApplication parent)
 {
     Handle      = handle;
     Id          = instanceId;
     ComponentId = compId;
     Parent      = parent;
 }
 internal ServiceComponentStateManager(Type ctype, string id, ComponentBasedApplication parent) : base(ctype, id, parent)
 {
     _callbacks.OnAction = new Interop.CBApplication.ServiceActionCallback(OnActionCallback);
     _callbacks.OnDeviceOrientationChanged = new Interop.CBApplication.ServiceDeviceOrientationChangedCallback(OnDeviceOrientationChangedCallback);
     _callbacks.OnLanguageChanged          = new Interop.CBApplication.ServiceLanguageChangedCallback(OnLanguageChangedCallback);
     _callbacks.OnLowBattery          = new Interop.CBApplication.ServiceLowBatteryCallback(OnLowBatteryCallback);
     _callbacks.OnLowMemory           = new Interop.CBApplication.ServiceLowMemoryCallback(OnLowMemoryCallback);
     _callbacks.OnRegionFormatChanged = new Interop.CBApplication.ServiceRegionFormatChangedCallback(OnRegionFormatChangedCallback);
     _callbacks.OnRestore             = new Interop.CBApplication.ServiceRestoreCallback(OnRestoreCallback);
     _callbacks.OnSave           = new Interop.CBApplication.ServiceSaveCallback(OnSaveCallback);
     _callbacks.OnSuspendedState = new Interop.CBApplication.ServiceSuspendedStateCallback(OnSuspendedStateCallback);
     _callbacks.OnCreate         = new Interop.CBApplication.ServiceCreateCallback(OnCreateCallback);
     _callbacks.OnDestroy        = new Interop.CBApplication.ServiceDestroyCallback(OnDestroyCallback);
     _callbacks.OnStart          = new Interop.CBApplication.ServiceStartCommandCallback(OnStartCallback);
     Parent = parent;
 }
Example #4
0
 internal WidgetComponentStateManager(Type ctype, string id, ComponentBasedApplication parent) : base(ctype, id, parent)
 {
     _callbacks.OnDeviceOrientationChanged = new Interop.CBApplication.WidgetDeviceOrientationChangedCallback(OnDeviceOrientationChangedCallback);
     _callbacks.OnLanguageChanged          = new Interop.CBApplication.WidgetLanguageChangedCallback(OnLanguageChangedCallback);
     _callbacks.OnLowBattery          = new Interop.CBApplication.WidgetLowBatteryCallback(OnLowBatteryCallback);
     _callbacks.OnLowMemory           = new Interop.CBApplication.WidgetLowMemoryCallback(OnLowMemoryCallback);
     _callbacks.OnRegionFormatChanged = new Interop.CBApplication.WidgetRegionFormatChangedCallback(OnRegionFormatChangedCallback);
     _callbacks.OnRestore             = new Interop.CBApplication.WidgetRestoreCallback(OnRestoreCallback);
     _callbacks.OnSave           = new Interop.CBApplication.WidgetSaveCallback(OnSaveCallback);
     _callbacks.OnSuspendedState = new Interop.CBApplication.WidgetSuspendedStateCallback(OnSuspendedStateCallback);
     _callbacks.OnCreate         = new Interop.CBApplication.WidgetCreateCallback(OnCreateCallback);
     _callbacks.OnDestroy        = new Interop.CBApplication.WidgetDestroyCallback(OnDestroyCallback);
     _callbacks.OnPause          = new Interop.CBApplication.WidgetPauseCallback(OnPauseCallback);
     _callbacks.OnResume         = new Interop.CBApplication.WidgetResumeCallback(OnResumeCallback);
     _callbacks.OnStart          = new Interop.CBApplication.WidgetStartCallback(OnStartCallback);
     _callbacks.OnStop           = new Interop.CBApplication.WidgetStopCallback(OnStopCallback);
     Parent = parent;
 }