private void Init(DataTable tree) { InitializeComponent(); displayOptionsDialog1 = new TimeSeries.Forms.DisplayOptionsDialog(input); this.tblTree = tree; SetupScenarios(); if (!tblTree.Columns.Contains("DataSource")) { tblTree.Columns.Add("DataSource"); tblTree.Columns["DataSource"].DefaultValue = ""; } viewer1 = new Viewer(); viewer1.Parent = this.splitContainer1.Panel2; viewer1.BringToFront(); viewer1.Dock = DockStyle.Fill; viewer1.Visible = true; if (input.DatabaseList.SupportExpertQueries) { this.expertSiteSelection1.Tree = tree; } else { this.tree1.Parent = this.splitContainer1.Panel1; this.tabControlSiteSelection.SendToBack(); } }
void DatabaseChanged() { tree1.SetModel(new TimeSeriesTreeModel(explorer1.Database)); this.Text = explorer1.Database.DataSource + " - Pisces"; this.explorer1.View = graphView1; displayOptionsDialog1 = new DisplayOptionsDialog(explorer1); SetupScenarioSelector(); explorer1.View.SeriesList.Clear(); explorer1.View.Clear(); explorer1.Run(); }
public void Rebuild(Explorer explorer) { explorer.OnProgress += new ProgressEventHandler(explorer_OnProgress); this.explorer1.View = viewer1; displayOptionsDialog1 = new TimeSeries.Forms.DisplayOptionsDialog(explorer1); SetupScenarios(); if (DB.Server == null) { this.menuDatabase.Visible = false; } else { this.menuDatabase.Visible = true; } }
void DatabaseChanged() { tree1.SetModel(new TimeSeriesTreeModel(engine1.Database)); this.Text = engine1.Database.DataSource + " - Pisces"; ReadSettingsFromDatabase(); this.engine1.View = graphView1; displayOptionsDialog1 = new DisplayOptionsDialog(engine1); SetupScenarioSelector(); engine1.SelectedSeries = new Series[] { }; engine1.View.SeriesList.Clear(); engine1.View.Clear(); engine1.Run(); }
void DatabaseChanged() { DB.OnReadSettingsFromDatabase += DB_OnReadSettingsFromDatabase; DB.OnSaveSettingsToDatabase += DB_OnSaveSettingsToDatabase; tree1.SetModel(new TimeSeriesTreeModel(explorer1.Database)); this.Text = explorer1.Database.DataSource + " - Pisces"; this.explorer1.View = graphView1; displayOptionsDialog1 = new DisplayOptionsDialog(explorer1); SetupScenarioSelector(); explorer1.SelectedSeries = new Series[] { }; explorer1.View.SeriesList.Clear(); explorer1.View.Clear(); explorer1.Run(); }
void DatabaseChanged() { tree1.SetModel(new TimeSeriesTreeModel ( engine1.Database)); this.Text = engine1.Database.DataSource + " - Pisces"; ReadSettingsFromDatabase(); this.engine1.View = graphView1; displayOptionsDialog1 = new DisplayOptionsDialog(engine1); SetupScenarioSelector(); engine1.SelectedSeries = new Series[] { }; engine1.View.SeriesList.Clear(); engine1.View.Clear(); engine1.Run(); }