public void Display(EtyDataPoint dp)
        {
            string Function_Name = "Display";

            colorPanel.BackColor = Color.Black;

            try
            {
                seriesTypeBox.Items.Add(StringHelper.GetInstance().getStringValue(LanguageHelper.TrendViewer_LintTypeLine, LanguageHelper.TrendViewer_LintTypeLine_EN));
                seriesTypeBox.Items.Add(StringHelper.GetInstance().getStringValue(LanguageHelper.TrendViewer_LintTypeSpline, LanguageHelper.TrendViewer_LintTypeSpline_EN));
                seriesTypeBox.Text    = StringHelper.GetInstance().getStringValue(LanguageHelper.TrendViewer_LintTypeLine, LanguageHelper.TrendViewer_LintTypeLine_EN);
                opcServerHostBox.Text = ConfigureFileHelper.GetInstance().HostIPAddress; //dp.DPHost.ToString();
                opcServerNameBox.Text = ConfigureFileHelper.GetInstance().OPCServerName; //dp.DPServer.ToString();

                if (m_formType == FormType.Edit)
                {
                    opcServerHostBox.Text = dp.DPHost.ToString();
                    opcServerNameBox.Text = dp.DPServer.ToString();
                    dataPointBox.Text     = dp.DPName.ToString();
                    seriesTypeBox.Text    = TrendViewerHelper.convertLineTypeToDispLan(dp.DPType);
                    dataLegendBox.Text    = dp.DPLblName;
                    if (TrendViewerHelper.isNumeric(dp.DPColor, System.Globalization.NumberStyles.Number))
                    {
                        colorPanel.BackColor = Color.FromArgb(Convert.ToInt32(dp.DPColor));
                    }
                    dataPointEnabledCb.Checked = dp.DPEnabled;
                    labelEnabledCb.Checked     = dp.DPLblEnabled;
                    dataPointVisibleCb.Checked = dp.DPVisible;
                }
            }
            catch (Exception localException)
            {
                LogHelper.Error(CLASS_NAME, Function_Name, localException.ToString());
            }
        }
        private void EditDataPointFormula_Load(object sender, EventArgs e)
        {
            string Function_Name = "EditDataPointFormula_Load";

            try
            {
                colorPanel.BackColor = Color.Black;
                seriesTypeBox.Items.Add(StringHelper.GetInstance().getStringValue(LanguageHelper.TrendViewer_LintTypeLine, LanguageHelper.TrendViewer_LintTypeLine_EN));
                seriesTypeBox.Items.Add(StringHelper.GetInstance().getStringValue(LanguageHelper.TrendViewer_LintTypeSpline, LanguageHelper.TrendViewer_LintTypeSpline_EN));

                if (m_formType == FormType.Add)
                {
                    seriesTypeBox.Text = StringHelper.GetInstance().getStringValue(LanguageHelper.TrendViewer_LintTypeLine, LanguageHelper.TrendViewer_LintTypeLine_EN);
                    this.Text          = StringHelper.GetInstance().getStringValue(LanguageHelper.TrendViewer_FormulaData_AddTitle, LanguageHelper.TrendViewer_FormulaData_AddTitle_EN);
                }
                else //for "Edit"
                {
                    FormulaDataController ctl     = (FormulaDataController)(getController());
                    EtyFormula            formula = ctl.GetFormula();

                    equationBox.Text   = formula.DPEquation;
                    seriesTypeBox.Text = TrendViewerHelper.convertLineTypeToDispLan(formula.DPType);
                    dataLegendBox.Text = formula.DPLblName;
                    if (isNumeric(formula.DPColor, System.Globalization.NumberStyles.Number))
                    {
                        colorPanel.BackColor = Color.FromArgb(Convert.ToInt32(formula.DPColor));
                    }
                    dataPointEnabledCb.Checked = formula.DPEnabled;
                    labelEnabledCb.Checked     = formula.DPLblEnabled;
                    this.Text = StringHelper.GetInstance().getStringValue(LanguageHelper.TrendViewer_FormulaData_EditTitle, LanguageHelper.TrendViewer_FormulaData_EditTitle_EN);
                }
            }
            catch (Exception localException)
            {
                LogHelper.Error(CLASS_NAME, Function_Name, localException.ToString());
            }
        }