Exemple #1
0
        public void Connected(string deviceId, PositionControllerResponse status)
        {
            Id = deviceId;

            if (deviceId != null && this.positionController.IsOkStatus(status.Status))
            {
                maxPosition              = 0;
                IsConnected              = true;
                PacketsTotalNumber       = 0;
                PacketsFailuresNumber    = 0;
                PacketsCrcFailuresNumber = 0;
                ConnectDisconnectTitle   = TITLE_DISCONNECT;
            }
            else
            {
                maxPosition            = 0;
                IsConnected            = false;
                ConnectDisconnectTitle = TITLE_CONNECT;
            }

            SetStatus("Connection attempt", PositionControllerCommand.NONE, status);

            DisconnectCommand.UpdateCanExecute();
            EmergencyStopCommand.UpdateCanExecute();
            ResetPositionControllerCommand.UpdateCanExecute();
            CalibratePositionControllerCommand.UpdateCanExecute();
        }
Exemple #2
0
 public void OnBusyChanged(bool isBusy)
 {
     DisconnectCommand.UpdateCanExecute();
     EmergencyStopCommand.UpdateCanExecute();
     ResetPositionControllerCommand.UpdateCanExecute();
     CalibratePositionControllerCommand.UpdateCanExecute();
 }
        public void Connected(string deviceId, bool isConnected)
        {
            Id = deviceId;

            if (isConnected)
            {
                IsConnected            = true;
                ConnectDisconnectTitle = TITLE_DISCONNECT;
            }
            else
            {
                IsConnected            = false;
                ConnectDisconnectTitle = TITLE_CONNECT;
            }

            DisconnectCommand.UpdateCanExecute();
            ResetLineSensorCommand.UpdateCanExecute();
            ResetWirelessLineSensorCommand.UpdateCanExecute();
        }
 public void OnBusyChanged(bool isBusy)
 {
     DisconnectCommand.UpdateCanExecute();
     ResetLineSensorCommand.UpdateCanExecute();
     ResetWirelessLineSensorCommand.UpdateCanExecute();
 }