Ejemplo n.º 1
0
        private void InitializePisces()
        {
            InitializeComponent();

            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);


            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);

            DataMenu.DropDown = contextMenuStripTree;

            DatabaseChanged();
        }