Exemplo n.º 1
0
        public EtyFormula GetNewFormula()
        {
            EtyFormula formula = new EtyFormula();

            formula.DPEquation   = equationBox.Text;
            formula.DPType       = TrendViewerHelper.convertLineTypeToEnum(seriesTypeBox.Text);
            formula.DPColor      = colorPanel.BackColor.ToArgb().ToString();
            formula.DPEnabled    = dataPointEnabledCb.Checked;
            formula.DPLblEnabled = labelEnabledCb.Checked;
            formula.DPLblName    = dataLegendBox.Text;
            return(formula);
        }
Exemplo n.º 2
0
        public EtyDataPoint GetNewDataPoint()
        {
            EtyDataPoint dataPoint = new EtyDataPoint();

            dataPoint.DPHost       = opcServerHostBox.Text;
            dataPoint.DPServer     = opcServerNameBox.Text;
            dataPoint.DPName       = dataPointBox.Text;
            dataPoint.DPType       = TrendViewerHelper.convertLineTypeToEnum(seriesTypeBox.Text);
            dataPoint.DPLblName    = dataLegendBox.Text;
            dataPoint.DPColor      = colorPanel.BackColor.ToArgb().ToString();
            dataPoint.DPEnabled    = dataPointEnabledCb.Checked;
            dataPoint.DPLblEnabled = labelEnabledCb.Checked;
            dataPoint.DPVisible    = dataPointVisibleCb.Checked;

            return(dataPoint);
        }