private void btnOK_Click(object sender, EventArgs e) { DataCommit(); this.DialogResult = DialogResult.OK; this.Dispose(); ChartParent.InitailColumnData(); }
private void Sure_Click(object sender, EventArgs e) { loadAno(section.StartAnnotation, startAn); loadAno(section.EndAnnotation, endAn); //loadUpperAndLower(scp.UpperLimit, seriesUpper); //loadUpperAndLower(scp.LowerLimit, seriesLower); seriesList.Clear(); seriesList.Add(setSectionSeries(seriesMain, scX, scY, section)); for (int i = 0; i < limitList.Count; i++) { seriesList.Add(getSeriesFromLimit(limitList[i])); } //seriesList.Add(seriesUpper); //seriesList.Add(seriesLower); dsApply = new DataSource(null); dsApply.SeriesList = this.seriesList; dsApply.TitleList = this.titleList; dsApply.annotationList = this.Annotations; ChartParent.Apperence = dsApply.Clone(); this.DialogResult = DialogResult.OK; this.Dispose(); ChartParent.InitailColumnData(); }