public CalculationProperties(CalculationSeries s, ITreeModel model, string[] DBunits) { InitializeComponent(); tree1 = new PiscesTree(model); tree1.ExpandRootNodes(); tree1.AllowDrop = false; tree1.Parent = this.splitContainer1.Panel1; tree1.Dock = DockStyle.Fill; tree1.RemoveCommandLine(); m_series = s; basicEquation1.SeriesExpression = m_series.Expression; basicEquation1.Units = m_series.Units; basicEquation1.SeriesName = m_series.Table.TableName; this.LoadList(basicEquation1.ComboBoxUnits, DBunits); }
public CalculationProperties(CalculationSeries s, ITreeModel model, TimeSeriesDatabase db) { string[] DBunits = db.GetUniqueUnits(); m_db = db; InitializeComponent(); tree1 = new PiscesTree(model); tree1.ExpandRootNodes(); tree1.AllowDrop = false; tree1.Parent = this.splitContainer1.Panel1; tree1.Dock = DockStyle.Fill; tree1.RemoveCommandLine(); m_series = s; basicEquation1.SeriesExpression = m_series.Expression; basicEquation1.SiteID = m_series.SiteID; }
private void InitializePisces(string fileName) { Logger.OnLogEvent += new StatusEventHandler(Logger_OnLogEvent); UserControl uc=null; #if PISCES_OPEN uc = new TimeSeriesZedGraph(); #else uc = new TimeSeriesTeeChartGraph(); #endif graphView1 = new GraphExplorerView(uc as ITimeSeriesGraph); engine1 = new PiscesEngine(graphView1,fileName); ReadSettingsFromDatabase(); SetView(graphView1); tree1 = new PiscesTree(new TimeSeriesTreeModel( engine1.Database)); tree1.FilterChanged += tree1_FilterChanged; tree1.ContextMenuStrip = this.contextMenuStripTree; tree1.Parent = this.splitContainer1.Panel1; tree1.Dock = DockStyle.Fill; tree1.SelectionChanged += new EventHandler(tree1_SelectionChanged); tree1.LabelChanged += new EventHandler<EventArgs>(tree1_LabelChanged); tree1.Delete += new EventHandler<EventArgs>(tree1_Delete); tree1.TreeNodeParentChanged += new EventHandler<ParentChangedEventArgs>(tree1_TreeNodeParentChanged); tree1.TreeNodeSortChanged += new EventHandler<SortChangedEventArgs>(tree1_TreeNodeSortChanged); engine1.View = graphView1; engine1.OnProgress += new ProgressEventHandler(explorer_OnProgress); DataMenu.DropDown = contextMenuStripTree; DatabaseChanged(); }