Exemplo n.º 1
0
        private void AddData()
        {
            dc.DataSeriesList.Clear();
            TextFileReader tfr = new TextFileReader();
            DataSeries     ds  = new DataSeries();

            // Add GE stock data from a text data file:
            ds = new DataSeries();
            var mainBundle = NSBundle.MainBundle;
            var filePath   = mainBundle.PathForResource("GE", "txt");

            ds.DataString          = tfr.ReadTextFile(filePath);
            ds.LineStyle.LineColor = Color.DarkBlue;
            dc.Add(ds);
        }
        private void AddData()
        {
            dc.DataSeriesList.Clear();
            TextFileReader tfr = new TextFileReader();
            DataSeries ds = new DataSeries();

            // Add GE stock data from a text data file:
            ds = new DataSeries();
            var mainBundle = NSBundle.MainBundle;
            var filePath = mainBundle.PathForResource("GE","txt");
            ds.DataString = tfr.ReadTextFile(filePath);
            ds.LineStyle.LineColor = Color.DarkBlue;
            dc.Add(ds);
        }