示例#1
0
        public Form1()
        {
            MulticamLog.Log(0, String.Format("MultiCam application version {0}", this.ProductVersion));

            ForceClosed = false;
            InitializeComponent();

            CheckAdminPrivileges();
            //CheckSkypeRunning();

            filterCommunicator = new MCFilterCommunicator();

            filterCommunicator.Message           += new MessageEventHandler(filterCommunicator_Message);
            filterCommunicator.ConnectHandler    += new EventHandler(filterCommunicator_Connect);
            filterCommunicator.DisconnectHandler += new EventHandler(filterCommunicator_Disconnect);
            filterCommunicator.NumCamerasHandler += new MCFilterNumCamerasHandler(filterCommunicator_NumCameras);

            skypeProxy.SkypeAttach              += new SkypeAttachHandler(skypeProxy_SkypeAttach);
            skypeProxy.SkypeResponse            += new SkypeResponseHandler(skypeProxy_SkypeResponse);
            skypeProxy.SkypeCommand             += new SkypeCommandHandler(skypeProxy_SkypeCommand);
            skypeProxy.SkypeProxyMessage        += new SkypeProxyMessageHandler(skypeProxy_SkypeProxyMessage);
            skypeProxy.AdvanceCameraHandler     += new EventHandler(skypeProxy_AdvanceCamera);
            skypeProxy.Ap2ApConnectHandler      += new EventHandler(skypeProxy_Ap2ApConnect);
            skypeProxy.NumCamerasHandler        += new SkypeProxyNumCamerasHandler(skypeProxy_NumCameras);
            skypeProxy.NumCamerasRequestHandler += new EventHandler(skypeProxy_NumCamerasRequest);
            skypeProxy.VersionRequestHandler    += new EventHandler(skypeProxy_VersionRequest);
            //skypeProxy.Connect();
            //skypeProxy.ConnectAp2Ap();

            HookManager.KeyDown += HookManager_KeyDown;

            GetStatus();
            UpdateStatus(status.ToString());
            CheckStatusInNewThread();
        }
示例#2
0
        public Form1()
        {
            MulticamLog.Log(0, String.Format("MultiCam application version {0}", this.ProductVersion));

            ForceClosed = false;
            InitializeComponent();

            CheckAdminPrivileges();
            //CheckSkypeRunning();

            filterCommunicator = new MCFilterCommunicator();

            filterCommunicator.Message += new MessageEventHandler(filterCommunicator_Message);
            filterCommunicator.ConnectHandler += new EventHandler(filterCommunicator_Connect);
            filterCommunicator.DisconnectHandler += new EventHandler(filterCommunicator_Disconnect);
            filterCommunicator.NumCamerasHandler += new MCFilterNumCamerasHandler(filterCommunicator_NumCameras);

            skypeProxy.SkypeAttach += new SkypeAttachHandler(skypeProxy_SkypeAttach);
            skypeProxy.SkypeResponse += new SkypeResponseHandler(skypeProxy_SkypeResponse);
            skypeProxy.SkypeCommand += new SkypeCommandHandler(skypeProxy_SkypeCommand);
            skypeProxy.SkypeProxyMessage += new SkypeProxyMessageHandler(skypeProxy_SkypeProxyMessage);
            skypeProxy.AdvanceCameraHandler += new EventHandler(skypeProxy_AdvanceCamera);
            skypeProxy.Ap2ApConnectHandler += new EventHandler(skypeProxy_Ap2ApConnect);
            skypeProxy.NumCamerasHandler += new SkypeProxyNumCamerasHandler(skypeProxy_NumCameras);
            skypeProxy.NumCamerasRequestHandler += new EventHandler(skypeProxy_NumCamerasRequest);
            skypeProxy.VersionRequestHandler += new EventHandler(skypeProxy_VersionRequest);
            //skypeProxy.Connect();
            //skypeProxy.ConnectAp2Ap();

            HookManager.KeyDown += HookManager_KeyDown;

            GetStatus();
            UpdateStatus(status.ToString());
            CheckStatusInNewThread();
        }