public void LiftControlInit() { foreach (ASectionObj obj in m_pSectionObjList) { AutoLiftNotifyControl alc = new AutoLiftNotifyControl(); alc.DbHelper = RainfallsDbHelper; alc.SoundPlay = SoundPlay; alc.SectonObj = obj; alc.OnShowHiddenEvent += new LiftShowHiddenDelegate(frmLift.getInstance().WhoIsShow); m_pLiftControlDictionary.Add(obj.ID, alc); frmLift.getInstance().AddLiftControl(alc); } }
public void AddLiftControl(AutoLiftNotifyControl alc) { m_pAlarmControlList.Add(alc); }