Ejemplo n.º 1
0
        /// <summary>
        /// StringData[0] - exhausted vent is disabled/enabled
        /// </summary>
        /// <returns></returns>
        public override DataClass GetControlData()
        {
            var result = new DataClass();

            result.StringData.Add(BoolToStringConverter.BTS((bool)WithoutVent));
            return(result);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// StringData[0]-CheckedAirTemp
        /// </summary>
        /// <returns></returns>
        public override DataClass GetControlData()
        {
            var result = new DataClass();

            result.StringData.Add(BoolToStringConverter.BTS((bool)IsCheckedAirTemp));
            return(result);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// ?? IntData[0]-number of stages
        /// </summary>
        /// <returns></returns>
        public override DataClass GetPowerData()
        {
            var result = new DataClass();

            result.StringData.Add(BoolToStringConverter.BTS((bool)ByPass));
            result.IntData.Add(SelectedNumOfStages);
            return(result);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// StringData[0] - exhausted,StringData[1] - forced;
        /// </summary>
        /// <returns></returns>
        public override DataClass GetControlData()
        {
            var result = new DataClass();

            result.StringData.Add(BoolToStringConverter.BTS((bool)IsSelectedExhausted));
            result.StringData.Add(BoolToStringConverter.BTS((bool)IsSelectedForced));
            return(result);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// IntData[0]-Pump power,IntData[1]-valve power
        /// </summary>
        /// <returns></returns>
        public override DataClass GetPowerData()
        {
            var result = new DataClass();

            result.IntData.Add(SelectedPumpPower);
            result.IntData.Add(SelectedValvePower);
            result.StringData.Add(BoolToStringConverter.BTS((bool)IsCheckedAirTemp));
            return(result);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// StringData[0]-PCH; StringData[1] - Reserve; StringData[2] - TypeOfPCH
        /// </summary>
        /// <returns></returns>
        public override DataClass GetControlData()
        {
            var result = new DataClass();

            result.StringData.Add(BoolToStringConverter.BTS((bool)PCHChecked));
            result.StringData.Add(BoolToStringConverter.BTS((bool)ReserveChecked));
            result.StringData.Add(SelectedType);
            return(result);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// IntData[0]-Value of stage, IntData[1]- Number of stages
        /// </summary>
        /// <returns></returns>
        public override DataClass GetPowerData()
        {
            var result = new DataClass();

            result.IntData.Add(SelectedIntValue);  //value of powerstage
            result.IntData.Add(SelectedNumOfStages);
            result.StringData.Add(BoolToStringConverter.BTS((bool)PCHChecked));
            return(result);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// IntData[0] - VentPower(220/380), StringData[0]- DrivePower, StringData[1] - PCHCheck;
        /// StringData[2] - ReserveCheck, StringData[3] - TypeOfPchControl
        /// </summary>
        /// <returns></returns>
        public override DataClass GetPowerData()
        {
            var result = new DataClass();

            result.IntData.Add(SelectedVentPower);
            result.StringData.Add(SelectedDrivePower.ToString());
            result.StringData.Add(BoolToStringConverter.BTS((bool)PCHChecked));
            result.StringData.Add(BoolToStringConverter.BTS((bool)ReserveChecked));
            result.StringData.Add(SelectedType);
            return(result);
        }
Ejemplo n.º 9
0
        /// <summary>
        /// IntData[0]-number of stages
        /// StringData[0] - type of water supplying, StringData[1] - air bypass, StringData[2]-water supply valve, StringData[3]- water return valve, StringData[4]-level sensor
        /// </summary>
        /// <returns></returns>
        public override DataClass GetControlData()
        {
            var result = new DataClass();

            result.IntData.Add(SelectedNumOfStages);
            result.StringData.Add(SelectedWaterTypes);
            result.StringData.Add(BoolToStringConverter.BTS((bool)ByPass));
            if (SelectedWaterTypes == WaterTypes[0])
            {
                result.StringData.Add(BoolToStringConverter.BTS((bool)InWater));
                result.StringData.Add(BoolToStringConverter.BTS((bool)OutWater));
                result.StringData.Add(BoolToStringConverter.BTS((bool)LevelCheck));
            }
            return(result);
        }
Ejemplo n.º 10
0
        /// <summary>
        /// IntData[0]-number of stages, IntData[1]- number of thermoswitches=
        /// </summary>
        /// <returns></returns>
        public override DataClass GetControlData()
        {
            var result = new DataClass();

            result.IntData.Add(SelectedNumOfStages);
            result.IntData.Add(SelectedThermoSwitch);
            if (PCHChecked != null)
            {
                result.StringData.Add(BoolToStringConverter.BTS((bool)PCHChecked));
            }
            else
            {
                result.StringData.Add("Нет");
            }
            return(result);
        }
Ejemplo n.º 11
0
        /// <summary>
        /// StringData[0] - relay control, StringData[1]- operator panel check, StringData[2] - sensor of outter temp, StringData[3] - sensor of input temp,
        /// StringData[4] - CO2 sensor, StringData[5] - type of CO2,"Нет" if not chosen
        /// </summary>
        /// <returns></returns>
        public override DataClass GetControlData()
        {
            var result = new DataClass();

            result.StringData.Add(BoolToStringConverter.BTS((bool)PhaseCheck));
            result.StringData.Add(BoolToStringConverter.BTS((bool)OperatorPanel));
            result.StringData.Add(BoolToStringConverter.BTS((bool)TempOut));
            result.StringData.Add(BoolToStringConverter.BTS((bool)TempIn));
            result.StringData.Add(BoolToStringConverter.BTS((bool)CO2));
            if (CO2 == true)
            {
                result.StringData.Add(SelectedType);
            }
            else
            {
                result.StringData.Add("Нет");
            }
            return(result);
        }
Ejemplo n.º 12
0
        /// <summary>
        /// StringData[0] - selected type,StringData[1] - dryer mode enabled(+2AI), StringData[2]- extra heater enabled
        /// IntData[0]- number of stages if freon chosen , =0 if not
        /// Another IntData and StringData are for ExtraHeater properties
        /// </summary>
        /// <returns></returns>
        public override DataClass GetControlData()
        {
            var result = new DataClass();

            result.StringData.Add(SelectedType);
            result.StringData.Add(BoolToStringConverter.BTS((bool)DryerChecked));
            result.StringData.Add(BoolToStringConverter.BTS((bool)ExtraHeaterChecked));
            if (SelectedType == CoolerTypes[1])
            {
                result.IntData.Add(SelectedNumOfStages);//Only for freon
            }
            else
            {
                result.IntData.Add(0);
            }
            if (ExtraHeaterChecked == true)
            {
                DataClass heaterControl = ExtraHeater.GetControlData();
                result.StringData.AddRange(heaterControl.StringData);
                result.IntData.AddRange(heaterControl.IntData);
            }

            return(result);
        }
Ejemplo n.º 13
0
        /// <summary>
        /// StringData[0]-Type of exchanger,StringData[1]-Temp. sensor,StringData[2]-Press. sensor
        /// After - IntData and StringData of chosen exchanger
        /// </summary>
        /// <returns></returns>
        public override DataClass GetControlData()
        {
            var result = new DataClass();

            result.StringData.Add(SelectedValueHeaterExchange);
            result.StringData.Add(BoolToStringConverter.BTS((bool)IsTempSensor));
            result.StringData.Add(BoolToStringConverter.BTS((bool)IsPressureSensor));
            if (SelectedValueHeaterExchange == RecupList[0])
            {
                DataClass rotorControl = RotorVM.GetControlData();
                if (rotorControl != null)
                {
                    result.IntData.AddRange(rotorControl.IntData);
                    result.StringData.AddRange(rotorControl.StringData);
                }
            }
            else if (SelectedValueHeaterExchange == RecupList[2])
            {
                DataClass PlateBypassControl = PlateBypassVM.GetControlData();
                if (PlateBypassControl != null)
                {
                    result.IntData.AddRange(PlateBypassControl.IntData);
                    result.StringData.AddRange(PlateBypassControl.StringData);
                }
            }
            else if (SelectedValueHeaterExchange == RecupList[3])
            {
                DataClass GlycolResult = GlycolVM.GetControlData();
                if (GlycolResult != null)
                {
                    result.IntData.AddRange(GlycolResult.IntData);
                    result.StringData.AddRange(GlycolResult.StringData);
                }
            }
            return(result);
        }
Ejemplo n.º 14
0
        /// <summary>
        /// IntData[0] - exhausted power, IntData[1] - forced power
        /// If not chosen = 0
        /// </summary>
        /// <returns></returns>
        public override DataClass GetPowerData()
        {
            var result = new DataClass();

            result.StringData.Add(SelectedControl);
            result.StringData.Add(BoolToStringConverter.BTS((bool)SpringReturn));
            if (IsSelectedExhausted == true)
            {
                result.IntData.Add(SelectedExhPower);
            }
            else
            {
                result.IntData.Add(0);
            }
            if (IsSelectedForced == true)
            {
                result.IntData.Add(SelectedFPower);
            }
            else
            {
                result.IntData.Add(0);
            }
            return(result);
        }