System.Windows.Forms.DataVisualization.Charting.ChartNamedElementCollection.FindByName(string)

Here are the examples of the csharp api class System.Windows.Forms.DataVisualization.Charting.ChartNamedElementCollection.FindByName(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

1. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
private Series FundSeriesByNameSafe(string name)
        {
            Series mySeries;
            try
            {
                mySeries = _chart.Series.FindByName(name);
            }
            catch (Exception)
            {
                try
                {
                    Thread.Sleep(100);
                    mySeries = _chart.Series.FindByName(name);
                }
                catch (Exception)
                {
                    return null;
                }
            }

            return mySeries;
        }

2. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
private ChartArea FundAreaByNameSafe(string name)
        {
            ChartArea myArea;
            try
            {
                myArea = _chart.ChartAreas.FindByName(name);
            }
            catch (Exception)
            {
                try
                {
                    Thread.Sleep(100);
                    myArea = _chart.ChartAreas.FindByName(name);
                }
                catch (Exception)
                {
                    return null;
                }
            }

            return myArea;
        }

3. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
private void PaintAlert(ChartAlertLine[] lines, Color colorLine, int borderWidth, Color colorLabel, /n ..... /n //View Source file for more details /n }

4. Example

Project: OsEngine
Source File: TesterServerUi.xaml.cs
View license
private void Resize()
        {
            if (_chartReport.InvokeRequired)
            {
         /n ..... /n //View Source file for more details /n }