Example #1
0
        /************************************ start define msg ***************************************/
        public void Init()
        {
            MsgReceivedEvent mre = new MsgReceivedEvent(MsgTypeSC.SendVideoList);

            mre.msgReceived += Msg_SendVideoList;
            MsgReceivedEvent mre2 = new MsgReceivedEvent(MsgTypeSC.ResUploadVideo);

            mre2.msgReceived += Msg_ResUploadVideo;
            MsgReceivedEvent mre3 = new MsgReceivedEvent(MsgTypeSC.ResDownloadVideo);

            mre3.msgReceived += Msg_ResDownloadVideo;
            MsgReceivedEvent mre4 = new MsgReceivedEvent(MsgTypeSC.ResDownloadImages);

            mre4.msgReceived += Msg_ResDownloadImages;
        }
Example #2
0
 public void AddMsgDefine(int idx, MsgReceivedEvent mre)
 {
     msgDictionary.Add(idx, mre);
 }