コード例 #1
0
 private void Device_onConnect(object sender, ActiveCNXConnectionEventArgs e)
 {
     IsConnected = true;
     Messages.Add(new ActivityMessage
     {
         Message = "CONNECTED"
     });
 }
コード例 #2
0
        void acnxConnection_onConnect(object sender, ActiveCNXConnectionEventArgs e)
        {
            this.log.LogEvent("\nConnected");
            //this.btnConnect.Enabled = false;
            //this.btnDisconnect.Enabled = true;

            this.acnxConnection.UpdateRequest();
        }
コード例 #3
0
 private void Device_onDisconnect(object sender, ActiveCNXConnectionEventArgs e)
 {
     IsConnected = false;
     Messages.Add(new ActivityMessage
     {
         Message = $"DISCONNECTED : {e.DisconnectReasonMessage}"
     });
 }
コード例 #4
0
ファイル: ActiveCNXConnection.cs プロジェクト: RBSystems/LoT
        /// <summary>
        /// Event Handler for when the connection is broken
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void acnxConnection_onDisconnect(object sender, ActiveCNXConnectionEventArgs e)
        {
            logger.Log(string.Format("Disconnect Reason: {0}\r\n", e.DisconnectReasonMessage));

            communicationPort.Notify(RoleSignalDigital.RoleName, RoleSignalDigital.OnDisconnectEvent,
                                     new List <VParamType>()
            {
                new ParamType(e.DisconnectReasonMessage)
            });
        }
コード例 #5
0
ファイル: ActiveCNXConnection.cs プロジェクト: RBSystems/LoT
        /// <summary>
        /// Event handler that gets triggered when a connection is made with a control system
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void acnxConnection_onConnect(object sender, ActiveCNXConnectionEventArgs e)
        {
            logger.Log("Connected\r\n");

            /// Send Update Request to the control system. An update request asks for the status of
            /// ALL attributes defined on the symbol. However, any attribute with a value of 0, or false
            /// will not be sent. If you have member variables defined that are tied to attribute values,
            /// make sure those values are zeroed out.
            logger.Log("Begin Update Request\r\n");

            this.acnxConnection.UpdateRequest();
            logger.Log("End Update Request\r\n");
        }
コード例 #6
0
ファイル: ActiveCNXConnection.cs プロジェクト: RBSystems/LoT
        /// <summary>
        /// Event handler that gets triggered when a connection is made with a control system
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void acnxConnection_onConnect(object sender, ActiveCNXConnectionEventArgs e)
        {
            logger.Log("Connected\r\n");

            /// Send Update Request to the control system. An update request asks for the status of
            /// ALL attributes defined on the symbol. However, any attribute with a value of 0, or false
            /// will not be sent. If you have member variables defined that are tied to attribute values,
            /// make sure those values are zeroed out.
            logger.Log("Begin Update Request\r\n");

            this.acnxConnection.UpdateRequest();
            logger.Log("End Update Request\r\n");

            communicationPort.Notify(RoleSignalDigital.RoleName, RoleSignalDigital.OnConnectEvent, new List <VParamType>()
            {
            });
        }
コード例 #7
0
 void acnxConnection_onDisconnect(object sender, ActiveCNXConnectionEventArgs e)
 {
 }
コード例 #8
0
ファイル: ActiveCNXConnection.cs プロジェクト: RBSystems/LoT
 /// <summary>
 /// Event Handler for when the connection is broken
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void acnxConnection_onDisconnect(object sender, ActiveCNXConnectionEventArgs e)
 {
     logger.Log(string.Format("Disconnect Reason: {0}\r\n", e.DisconnectReasonMessage));
 }
コード例 #9
0
ファイル: Form1.cs プロジェクト: vkbox/Kinect-Crestron-Test
 void acnxConnection_onDisconnect(object sender, ActiveCNXConnectionEventArgs e)
 {
 }
コード例 #10
0
ファイル: Form1.cs プロジェクト: vkbox/Kinect-Crestron-Test
        void acnxConnection_onConnect(object sender, ActiveCNXConnectionEventArgs e)
        {
            this.log.LogEvent("\nConnected");
            //this.btnConnect.Enabled = false;
            //this.btnDisconnect.Enabled = true;

            this.acnxConnection.UpdateRequest();
        }