public void FireEvent(string pEventName, ICDEThing sender, object pPara, bool FireAsync) { if (MyBaseThing != null) { MyBaseThing.FireEvent(pEventName, sender, pPara, FireAsync); } }
/// <summary> /// Initializes the NMI Screen /// </summary> /// <returns></returns> public override bool Init() { if (mIsInitCalled) { return(false); } mIsInitCalled = true; if (string.IsNullOrEmpty(MyBaseThing.ID)) { MyBaseThing.ID = Guid.NewGuid().ToString(); } mIsInitialized = DoInit(); MyBaseThing.FireEvent("OnInitialized", this, new TSM(MyBaseThing.cdeMID.ToString(), "Was Init"), false); return(mIsInitialized); }
public override bool Init() { if (mIsInitCalled) { return(false); } { mIsInitCalled = true; if (string.IsNullOrEmpty(MyBaseThing.ID)) { MyBaseThing.ID = Guid.NewGuid().ToString(); } MyBaseThing.FireEvent("OnInitialized", this, new TSM(MyBaseThing.cdeMID.ToString(), "Was Init"), false); TheBaseEngine.WaitForStorageReadiness(sinkStorageStationIsReadyFired, true); } return(false); }
/// <summary> /// Initializes the Live Tag /// </summary> /// <returns></returns> public override bool Init() { if (mIsInitCalled) { return(false); } mIsInitCalled = true; TheThing.SetSafePropertyBool(MyBaseThing, "IsLiveTag", true); MyBaseThing.FireEvent("OnInitialized", this, new TSM(MyBaseThing.cdeMID.ToString(), "Was Init"), false); cdeP tThrot = GetProperty("Throttle", true); tThrot.RegisterEvent(eThingEvents.PropertyChanged, sinkThrottleChanged); mIsInitialized = DoInit(); if (string.IsNullOrEmpty(MyBaseThing.ID)) { MyBaseThing.ID = Guid.NewGuid().ToString(); } return(mIsInitialized); }