public void Clear() { if (this.Markdown != null) { this.Markdown.Dispose(); } this.Markdown = null; Editor.Clear(); Viewer.Clear(); }
public void Load(string Path) { Viewer.Clear(); Viewer.LocalReport.ReportEmbeddedResource = Path; Viewer.LocalReport.SetParameters(Parameters); foreach (ReportDataSource ReportData in DataSource) { Viewer.LocalReport.DataSources.Add(ReportData); } Viewer.LocalReport.Refresh(); }
private void UpdateView() { formProgress1 = new FormProgress(); formProgress1.StartPosition = FormStartPosition.Manual; formProgress1.Location = new System.Drawing.Point(this.Location.X + this.Width / 2, this.Location.Y + this.Height / 2); formProgress1.Show(); formProgress1.Refresh(); displayOptionsDialog1.OnProgress += new cbp.ProgressEventHandler(displayDirector1_OnProgress); TimeSeries.SeriesList list = input.CreateSelectedSeries(scenarioChooser1.Selected, SelectedSites()); if (list.Count > 0) { presenter.Draw(input); // displayOptionsDialog1.Draw(list, viewer1); } else { viewer1.Clear(); } }