Example #1
0
        void sinkUpdateUX(cdeP pProp)
        {
            int i = MyBaseThing.StatusLevel; //Optimizing that GetProperty is not called 3 times

            SummaryForm?.SetUXProperty(Guid.Empty, string.Format("Background={0}", TheNMIEngine.GetStatusColor(i)));

            MyBaseEngine.ProcessMessage(new TheProcessMessage(new TSM(MyBaseEngine.GetEngineName(), "UPDATE_VALUE")));
        }
 void sinkStatChanged(TheDashPanelInfo tDas, cdeP prop)
 {
     MyBaseThing.Value = MyBaseThing.PropertyCount.ToString();
     SummaryForm.SetUXProperty(Guid.Empty, string.Format("iValue={0}", MyBaseThing.Value));
 }