Esempio n. 1
0
 private void ShowMessage(string msg)
 {
     if (!this.InvokeRequired)
     {
         MessageBox.Show(msg);
     }
     else
     {
         ShowMessageDel showMessageDel = new ShowMessageDel(ShowMessage);
         Invoke(showMessageDel, msg);
     }
 }
Esempio n. 2
0
        public EventHandler()
        {
            dialog_OnDialogEvent  = new BVCU_Dialog_OnDialogEvent(Dialog_OnDialogEvent);
            dialog_OnStorageEvent = new BVCU_Dialog_OnStorageEvent(Dialog_OnStorageEvent);
            tspDialog_OnEvent     = new BVCU_TspDialog_OnEvent(TspDialog_OnEvent);
            tspDialog_OnData      = new BVCU_TspDialog_OnData(TspDialog_onData);

            server_OnEvent         = new BVCU_Server_OnEvent(Server_OnEvent);
            server_ProcChannelInfo = new BVCU_Server_ProcChannelInfo(Server_ProcNotifyChannelInfo);
            cmd_OnGetPuList        = new BVCU_Cmd_OnGetPuList(Cmd_OnGetPuList);

            onControlResult         = new BVCU_Cmd_ControlResult(OnControlResult);
            m_showMessageBoxOnEvent = new ShowMessageDel(procShowMessageBoxOnEvent);
            onGetPtzAttr            = new BVCU_Cmd_OnGetPuPtzAttr(OnGetPuPtzAttr);
        }
Esempio n. 3
0
        public EventHandler()
        {
            dialog_OnDialogEvent  = new BVCU_Dialog_OnDialogEvent(Dialog_OnDialogEvent);
            dialog_OnStorageEvent = new BVCU_Dialog_OnStorageEvent(Dialog_OnStorageEvent);
            gpsDialog_OnEvent     = new BVCU_GpsDialog_OnEvent(GpsDialog_OnEvent);
            gpsDialog_OnData      = new BVCU_GpsDialog_OnData(GpsDialog_OnData);
            tspDialog_OnEvent     = new BVCU_TspDialog_OnEvent(TspDialog_OnEvent);
            tspDialog_OnData      = new BVCU_TspDialog_OnData(TspDialog_onData);

            server_OnEvent  = new BVCU_Server_OnEvent(Server_OnEvent);
            server_onNotify = new BVCU_Server_Notify(Server_OnNotify);
            cmd_OnGetPuList = new BVCU_Cmd_OnGetPuList(Cmd_OnGetPuList);

            onControlResult         = new BVCU_Cmd_ControlResult(OnControlResult);
            m_showMessageBoxOnEvent = new ShowMessageDel(procShowMessageBoxOnEvent);
            onGetPtzAttr            = new BVCU_Cmd_OnGetPuPtzAttr(OnGetPuPtzAttr);

            onQueryResult = new BVCU_Cmd_QueryResult(OnQueryResult);
        }