Example #1
0
        public void Init()
        {
            Manager.instance.init();
            Manager.instance.InsertIndexListView = new Manager.InsertIndexListViewDelegate(insertToListView1);
            Manager.instance.UpdeteIndexListView = new Manager.UpdeteIndexListViewDelegate(updateListView1);

            m_CameraLicense = new CameraLicense();
            m_CameraLicense.Init();
            m_CameraLicense.UpdateInChepai       = new CameraLicense.UpdateINChepaiLabelDelegate(UpdateInchepaiLabel);
            m_CameraLicense.UpdateOutChepai      = new CameraLicense.UpdateOUTChepaiLabelDelegate(UpdateOutchepaiLabel);
            m_CameraLicense.UpdateInChepaiImage  = new CameraLicense.UpdateINChepaiImageDelegate(UpdateInchepaiImage);
            m_CameraLicense.UpdateOutChepaiImage = new CameraLicense.UpdateOUTChepaiImageDelegate(UpdateOutchepaiImage);

            m_Loadometer = new Loadometer();
            m_Loadometer.UpdateInweight         = new Loadometer.UpdateInweightDelegate(UpdateInweight);
            m_Loadometer.UpdateInweightState    = new Loadometer.UpdateInweightStateDelegate(UpdateInweightState);
            m_Loadometer.UpdateInweightConnect  = new Loadometer.UpdateInweightConnectDelegate(UpdateInweightConnect);
            m_Loadometer.UpdateOutweight        = new Loadometer.UpdateOutweightDelegate(UpdateOutweight);
            m_Loadometer.UpdateOutweightState   = new Loadometer.UpdateOutweightStateDelegate(UpdateOutweightState);
            m_Loadometer.UpdateOutweightConnect = new Loadometer.UpdateOutweightStateDelegate(UpdateOutweightConnect);

            m_RedSwitch = new RedSwitch();
            Manager.instance.redSwitch    = m_RedSwitch;
            m_RedSwitch.UpdateRedSwitchUI = new RedSwitch.UpdataRedSwitchUIDelegate(UpdeteRedSwitchUI);

            m_LEDControl = new LEDControl();
            Manager.instance.ledControl = m_LEDControl;


            initListview1();
        }