예제 #1
0
파일: Explorer.cs 프로젝트: woohn/Pisces
        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();
            }
        }
예제 #2
0
        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();
        }
예제 #3
0
 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;
     }
 }
예제 #4
0
파일: PiscesForm.cs 프로젝트: woohn/Pisces
        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();
        }
예제 #5
0
        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();
        }
예제 #6
0
파일: PiscesForm.cs 프로젝트: usbr/Pisces
        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();
        }