コード例 #1
0
ファイル: PiscesForm.cs プロジェクト: jmptrader/Pisces
        private void InitializePisces()
        {
            InitializeComponent();

            Logger.OnLogEvent += new StatusEventHandler(Logger_OnLogEvent);

            UserControl uc = null;

            // if( ConfigurationManager.AppSettings["GraphComponent"] == "TeeChart")
            //   uc = new TimeSeriesTeeChartGraph();
            //else
            uc = new TimeSeriesZedGraph();

            graphView1 = new GraphExplorerView(uc as ITimeSeriesGraph);


            SetView(graphView1);

            tree1 = new PiscesTree(new TimeSeriesTreeModel(explorer1.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);
            explorer1.View               = graphView1;
            explorer1.OnProgress        += new ProgressEventHandler(explorer_OnProgress);


            DatabaseChanged();
        }
コード例 #2
0
ファイル: Monthly.cs プロジェクト: muguangyuze/HydrometTools
        public Monthly()
        {
            InitializeComponent();

            var zg = new TimeSeriesZedGraph();

            view = new GraphExplorerView(zg);

            view.Parent = panel1;
            view.Dock   = DockStyle.Fill;
            view.BringToFront();
        }
コード例 #3
0
        public VolumeInRange()
        {
            InitializeComponent();

            var zg = new TimeSeriesZedGraph();

            view = new GraphExplorerView(zg);

            view.Parent = panel1;
            view.Dock   = DockStyle.Fill;
            view.BringToFront();

            this.textBoxRankedYear.Text = DateTime.Now.WaterYear().ToString();
        }
コード例 #4
0
        public MultiYearAverage()
        {
            InitializeComponent();
            int yr = DateTime.Now.Year;

            if (DateTime.Now.Month > 9)
            {
                yr += 1;
            }
            this.textBoxCompareSingleYear.Text = yr.ToString();

            var zg = new TimeSeriesZedGraph();

            view = new GraphExplorerView(zg);

            view.Parent = panel1;
            view.Dock   = DockStyle.Fill;
            view.BringToFront();
        }
コード例 #5
0
ファイル: PiscesForm.cs プロジェクト: woohn/Pisces
        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();
        }
コード例 #6
0
ファイル: PiscesForm.cs プロジェクト: usbr/Pisces
        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();
        }
コード例 #7
0
ファイル: GraphExplorerView.cs プロジェクト: usbr/Pisces
 public GraphExplorerView()
 {
     var uc = new TimeSeriesZedGraph();
     InitControl(uc);
 }