Esempio n. 1
0
        private void _cmbSeries_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (_cmbSeries.SelectedItem != null)
            {
                DataSeriesNameParser item = ((DataSeriesNameParser)_cmbSeries.SelectedItem);

                _txtName.Text   = item.SeriesNamePattern;
                _spnDepth.Value = item.Series.Depth;
            }
        }
Esempio n. 2
0
        private void _btnSet_Click(object sender, EventArgs e)
        {
            if (_cmbSeries.SelectedItem != null)
            {
                DataSeriesNameParser item = ((DataSeriesNameParser)_cmbSeries.SelectedItem);

                item.SeriesNamePattern = _txtName.Text;
                item.Series.Depth      = (int)_spnDepth.Value;

                int index = _cmbSeries.SelectedIndex;
                FillList();
                _cmbSeries.SelectedIndex = index;
            }
        }
Esempio n. 3
0
        public void LoadSettings(XmlNode hostNode)
        {
            XmlNode series = hostNode[XML_DATA_SETTINGS_NODE];

            if (series != null)
            {
                foreach (XmlNode node in series.ChildNodes)
                {
                    DataSeriesNameParser s = FindSeries((SeriesDataSources)int.Parse(node.Attributes[XML_ELEMENT_SERIES_SOURCE].InnerText));

                    if (node[XML_ELEMENT_SERIES_NAME_PATTERN] != null)
                    {
                        s.SeriesNamePattern = node[XML_ELEMENT_SERIES_NAME_PATTERN].InnerText;
                    }

                    if (node[XML_ELEMENT_SERIES_DEPTH] != null)
                    {
                        s.Series.Depth = int.Parse(node[XML_ELEMENT_SERIES_DEPTH].InnerText);
                    }
                }
            }
        }