Example #1
0
        public ImportDaily()
        {
            InitializeComponent();
            HydrometInfoUtility.WebOnly = true;

            Reclamation.TimeSeries.Point.MissingValueFlag = 998877;

            this.timeSelectorBeginEnd1.T1 = new DateTime(2011, 10, 1);
            this.timeSelectorBeginEnd1.T2 = DateTime.Now.Date;

            teeChartExplorerView1             = new Reclamation.TimeSeries.Graphing.GraphExplorerView(new TimeSeriesTeeChartGraph());
            this.teeChartExplorerView1.Parent = this.panelChart;
            this.teeChartExplorerView1.Dock   = System.Windows.Forms.DockStyle.Fill;

            var fn = FileUtility.GetFileReference("data_import_sites.csv");

            if (File.Exists(fn))
            {
                OpenFile(fn);
            }
        }
Example #2
0
        public ImportDaily()
        {
            InitializeComponent();
            HydrometInfoUtility.WebOnly = true;

            Reclamation.TimeSeries.Point.MissingValueFlag = 998877;

            this.timeSelectorBeginEnd1.T1 = new DateTime(DateTime.Now.Year - 5, 10, 1);
            this.timeSelectorBeginEnd1.T2 = DateTime.Now.Date;

            // [JR] Move constructors for the TeeChart graphs outside of the initialization section to bypass designer errors at design-time
            {
                teeChartExplorerView1             = new Reclamation.TimeSeries.Graphing.GraphExplorerView(new TimeSeriesTeeChartGraph());
                this.teeChartExplorerView1.Parent = this.panelChart;
                this.teeChartExplorerView1.Dock   = System.Windows.Forms.DockStyle.Fill;

                timeSeriesGraph2                       = new Reclamation.TimeSeries.Graphing.TimeSeriesTeeChartGraph();
                this.timeSeriesGraph2.Dock             = System.Windows.Forms.DockStyle.Bottom;
                this.timeSeriesGraph2.Location         = new System.Drawing.Point(0, 373);
                this.timeSeriesGraph2.MissingDataValue = -999D;
                this.timeSeriesGraph2.MultiLeftAxis    = false;
                this.timeSeriesGraph2.Name             = "timeSeriesGraph2";
                this.timeSeriesGraph2.Size             = new System.Drawing.Size(939, 159);
                this.timeSeriesGraph2.SubTitle         = "";
                this.timeSeriesGraph2.TabIndex         = 1;
                this.timeSeriesGraph2.Title            = "";
                this.Controls.Add(this.timeSeriesGraph2);
            }

            var fn = FileUtility.GetFileReference("data_import_sites.csv");

            if (File.Exists(fn))
            {
                OpenFile(fn);
            }
        }
Example #3
0
        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();
        }