Пример #1
0
        private void SetRow(DataGridViewRow row, VariablePoint point)
        {
            if (row == null || point == null)
            {
                return;
            }

            row.SetValue(DescriptionColumn, point.Description);
            row.SetValue(AutoManualColumn, point.AutoManual);
            row.SetCell(ValueColumn, TViewUtilities.GetValueCellForUnit(
                            point.Value.ToString(), point.Value.Unit));
            row.SetValue(UnitColumn, point.Value.Unit);
            row.SetValue(RangeColumn, point.Value.Value);
            row.SetValue(StatusColumn, point.Control);
            row.SetValue(LabelColumn, point.Label);
        }
        private void SetRow(DataGridViewRow row, OutputPoint point)
        {
            if (row == null || point == null)
            {
                return;
            }

            row.SetValue(DescriptionColumn, point.Description);
            row.SetValue(AutoManualColumn, point.AutoManual);
            row.SetValue(HOASwitchColumn, point.HwSwitchStatus);
            row.SetCell(ValueColumn, TViewUtilities.GetValueCellForUnit(
                            point.Value.ToString(),
                            point.Value.Unit));
            row.SetValue(UnitColumn, point.Value.Unit);
            row.SetValue(RangeColumn, point.Value.Value);
            row.SetValue(RangeTextColumn, point.Value.Unit);
            row.SetValue(LowVColumn, point.LowVoltage);
            row.SetValue(HighVColumn, point.HighVoltage);
            row.SetValue(PWMPeriodColumn, point.PwmPeriod);
            row.SetValue(StatusColumn, point.Control);
            row.SetValue(LabelColumn, point.Label);
        }
Пример #3
0
        private void SetRow(DataGridViewRow row, InputPoint point)
        {
            if (row == null || point == null)
            {
                return;
            }

            row.SetValue(DescriptionColumn, point.Description);
            row.SetValue(AutoManualColumn, point.AutoManual);
            row.SetCell(ValueColumn, TViewUtilities.GetValueCellForUnit(
                            point.Value.ToString(),
                            point.Value.Unit));
            row.SetValue(UnitColumn, point.Value.Unit);
            row.SetValue(RangeColumn, point.Value.Value);
            row.SetValue(RangeTextColumn, point.Value.Unit);
            row.SetValue(CalibrationColumn, point.CalibrationL);
            row.SetValue(SignColumn, point.CalibrationSign);
            row.SetValue(FilterColumn, point.Filter);
            row.SetValue(StatusColumn, point.Status);
            row.SetValue(JumperColumn, point.Jumper);
            row.SetValue(LabelColumn, point.Label);
        }
        private void SetRow(DataGridViewRow row, ControllerPoint point)
        {
            if (row == null || point == null)
            {
                return;
            }

            row.SetValue(NumberColumn, point.Input.Number);
            row.SetCell(ValueColumn, TViewUtilities.GetValueCellForUnit(
                            point.Value.ToString(),
                            point.Unit));
            row.SetValue(UnitsColumn, point.Unit);
            row.SetValue(AutoManualColumn, point.AutoManual);
            row.SetValue(OutputColumn, "x.x %");
            row.SetValue(SetPointColumn, "");
            row.SetValue(SetValueColumn, "");
            row.SetValue(UnitsColumn, "");
            row.SetValue(ActionColumn, point.Action);
            row.SetValue(PropColumn, point.Proportional);
            row.SetValue(IntColumn, 0);
            row.SetValue(TimeColumn, point.Periodicity);
            row.SetValue(DerColumn, 0.0);
            row.SetValue(BiasColumn, point.Bias);
        }