private void initialEvent()
        {
            ALINE line = scApp.getEQObjCacheManager().getLine();

            line.addEventHandler(this.Name
                                 , BCFUtility.getPropertyName(() => line.ServiceMode)
                                 , (s1, e1) =>
            {
                Adapter.Invoke((obj) =>
                {
                    switch (line.ServiceMode)
                    {
                    case SCAppConstants.AppServiceMode.None:
                        lbl_isMaster.BackColor = Color.Gray;
                        break;

                    case SCAppConstants.AppServiceMode.Active:
                        lbl_isMaster.BackColor = Color.Green;
                        break;

                    case SCAppConstants.AppServiceMode.Standby:
                        lbl_isMaster.BackColor = Color.Yellow;
                        break;
                    }
                }, null);
            });
            line.addEventHandler(this.Name
                                 , BCFUtility.getPropertyName(() => line.Secs_Link_Stat)
                                 , (s1, e1) =>
            {
                lbl_hostconnAndMode.BackColor =
                    line.Secs_Link_Stat == SCAppConstants.LinkStatus.LinkOK ? Color.Green : Color.Gray;
            }
                                 );
            line.addEventHandler(this.Name
                                 , BCFUtility.getPropertyName(() => line.Host_Control_State)
                                 , (s1, e1) =>
            {
                SetHostControlState(line.Host_Control_State);
            }
                                 );
            //line.addEventHandler(this.Name
            //, BCFUtility.getPropertyName(() => line.TSCStateMachine)
            //     , (s1, e1) =>
            //     {
            //         SetSCState(line.Host_Control_State);
            //     }
            //     );
            line.addEventHandler(this.Name
                                 , BCFUtility.getPropertyName(() => line.Redis_Link_Stat)
                                 , (s1, e1) =>
            {
                lbl_RediStat.BackColor =
                    line.Redis_Link_Stat == SCAppConstants.LinkStatus.LinkOK ? Color.Green : Color.Gray;
            }
                                 );
            //line.addEventHandler(this.Name
            //, BCFUtility.getPropertyName(() => line.IsEarthquakeHappend)
            //    , (s1, e1) =>
            //    {
            //        lbl_earthqualeHappend.BackColor =
            //        line.IsEarthquakeHappend ? Color.Red : Color.Gray;
            //    }
            //    );
            //line.addEventHandler(this.Name
            //    , BCFUtility.getPropertyName(() => line.DetectionSystemExist)
            //        , (s1, e1) =>
            //        {
            //            lbl_detectionSystemExist.BackColor =
            //            line.DetectionSystemExist == SCAppConstants.ExistStatus.Exist ? Color.Green : Color.Gray;
            //        }
            //        );
            //scApp.getNatsManager().Subscriber(SCAppConstants.NATS_SUBJECT_CURRENT_ALARM, SetCurrentAlarm);
            line.AlarmListChange += SetCurrentAlarm;

            sc.App.SystemParameter.AutoOverrideChange += SystemParameter_AutoOverrideChange;

            mainform.BCApp.addRefreshUIDisplayFun(this.Name, delegate(object o) { BCUtility.updateUIDisplayByAuthority(mainform.BCApp, this); }); //B0.02
            BCUtility.updateUIDisplayByAuthority(mainform.BCApp, this);                                                                           //B0.02
        }