示例#1
0
 public void Clear()
 {
     if (this.Markdown != null)
     {
         this.Markdown.Dispose();
     }
     this.Markdown = null;
     Editor.Clear();
     Viewer.Clear();
 }
示例#2
0
 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();
 }
示例#3
0
文件: Explorer.cs 项目: woohn/Pisces
        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();
            }
        }