Example #1
0
        /// <summary>
        /// Calls the OnPropertyChanged event and updates properties related to the Valve Close command.
        /// </summary>
        private void UpdateRecordValveClose()
        {
            if (_realTimeStatusDataModel.ActivePrintheadType == PrintheadType.Valve)
            {
                RealTimeStatusValvePrintheadViewModel realTimeStatusValvePrintheadViewModel = (RealTimeStatusValvePrintheadViewModel)_activePrintheadViewModel;

                if (realTimeStatusValvePrintheadViewModel != null)
                {
                    realTimeStatusValvePrintheadViewModel.UpdateIsValveOn();
                }
            }
        }
Example #2
0
        /// <summary>
        /// Calls the OnPropertyChanged event and updates properties related to the Valve Print With Movement command.
        /// </summary>
        private void UpdateRecordValvePrintWithMovement()
        {
            if (_realTimeStatusDataModel.ActivePrintheadType == PrintheadType.Valve)
            {
                RealTimeStatusValvePrintheadViewModel realTimeStatusValvePrintheadViewModel = (RealTimeStatusValvePrintheadViewModel)_activePrintheadViewModel;

                if ((_xRealTimeStatusAxisViewModel != null) &&
                    (_yRealTimeStatusAxisViewModel != null) &&
                    (_zRealTimeStatusAxisViewModel != null) &&
                    (realTimeStatusValvePrintheadViewModel != null))
                {
                    _xRealTimeStatusAxisViewModel.UpdatePosition();
                    _yRealTimeStatusAxisViewModel.UpdatePosition();
                    _zRealTimeStatusAxisViewModel.UpdatePosition();
                    realTimeStatusValvePrintheadViewModel.UpdateIsValveOn();
                }
            }
        }