protected override void InitializeView()
        {
            base.InitializeView();

            DataFeedView v = this.Session.CreateMultiRowDataFeedView(this.Scenario, this.ControllingScenario);

            this.PanelJurisdictions.Controls.Add(v);
        }
Example #2
0
        public override void LoadDataFeed(Core.DataFeed dataFeed)
        {
            base.LoadDataFeed(dataFeed);

            DataFeedView v = (DataFeedView)this.PanelMultipliers.Controls[0];

            v.LoadDataFeed(dataFeed, Strings.DATASHEET_TRANSITION_SLOPE_MULTIPLIER_NAME);
        }
Example #3
0
        protected override void InitializeView()
        {
            base.InitializeView();

            DataFeedView v = this.Session.CreateMultiRowDataFeedView(this.Project);

            this.PanelMain.Controls.Add(v);
        }
Example #4
0
 public override void EnableView(bool enable)
 {
     if (this.PanelMain.Controls.Count > 0)
     {
         DataFeedView v = (DataFeedView)this.PanelMain.Controls[0];
         v.EnableView(enable);
     }
 }
        protected override void InitializeView()
        {
            base.InitializeView();

            this.m_MultipliersView     = (this.Session.CreateMultiRowDataFeedView(this.Scenario, this.ControllingScenario));
            this.m_MultipliersDataGrid = ((MultiRowDataFeedView)this.m_MultipliersView).GridControl;
            this.PanelMultipliersGrid.Controls.Add(this.m_MultipliersView);
        }
Example #6
0
        protected override void InitializeView()
        {
            base.InitializeView();

            this.m_FilesView     = (this.Session.CreateMultiRowDataFeedView(this.Scenario, this.ControllingScenario));
            this.m_FilesDataGrid = ((MultiRowDataFeedView)this.m_FilesView).GridControl;
            this.PanelTopContent.Controls.Add(this.m_FilesView);
            this.PanelBottomContent.BackColor = Color.FromArgb(214, 219, 233);
        }
        public override void EnableView(bool enable)
        {
            if (this.PanelMultipliersGrid.Controls.Count > 0)
            {
                DataFeedView v = (DataFeedView)this.PanelMultipliersGrid.Controls[0];
                v.EnableView(enable);
            }

            this.m_IsEnabled = enable;
        }
Example #8
0
        public override void LoadDataFeed(DataFeed dataFeed)
        {
            base.LoadDataFeed(dataFeed);

            this.SetCheckBoxBinding(this.CheckBoxApplyBeforeTransitions, Constants.DATASHEET_FLOW_ORDER_OPTIONS, Constants.DATASHEET_FLOW_ORDER_OPTIONS_ABT_COLUMN_NAME);
            this.SetCheckBoxBinding(this.CheckBoxApplyEquallyRankedFlowsSimultaneously, Constants.DATASHEET_FLOW_ORDER_OPTIONS, Constants.DATASHEET_FLOW_ORDER_OPTIONS_AERS_COLUMN_NAME);

            DataFeedView v = (DataFeedView)this.PanelFlowOrder.Controls[0];

            v.LoadDataFeed(dataFeed, Constants.DATASHEET_FLOW_ORDER);
        }
Example #9
0
        public override void LoadDataFeed(Core.DataFeed dataFeed)
        {
            base.LoadDataFeed(dataFeed);

            DataFeedView v1 = (DataFeedView)this.PanelSettings.Controls[0];

            v1.LoadDataFeed(dataFeed, Strings.DATASHEET_TRANSITION_ADJACENCY_SETTING_NAME);

            DataFeedView v2 = (DataFeedView)this.PanelMultipliers.Controls[0];

            v2.LoadDataFeed(dataFeed, Strings.DATASHEET_TRANSITION_ADJACENCY_MULTIPLIER_NAME);
        }
        public override void LoadDataFeed(Core.DataFeed dataFeed)
        {
            base.LoadDataFeed(dataFeed);

            DataFeedView v1 = (DataFeedView)this.PanelNonSpatial.Controls[0];

            v1.LoadDataFeed(dataFeed, Constants.DATASHEET_INITIAL_STOCK_NON_SPATIAL);

            DataFeedView v2 = (DataFeedView)this.PanelSpatial.Controls[0];

            v2.LoadDataFeed(dataFeed, Constants.DATASHEET_INITIAL_STOCK_SPATIAL);
        }
Example #11
0
        protected override void InitializeView()
        {
            base.InitializeView();

            DataFeedView v1 = this.Session.CreateMultiRowDataFeedView(this.Scenario, this.ControllingScenario);

            this.PanelSettings.Controls.Add(v1);

            DataFeedView v2 = this.Session.CreateMultiRowDataFeedView(this.Scenario, this.ControllingScenario);

            this.PanelMultipliers.Controls.Add(v2);
        }
Example #12
0
        public override void EnableView(bool enable)
        {
            if (this.PanelFlowOrder.Controls.Count > 0)
            {
                DataFeedView v = (DataFeedView)this.PanelFlowOrder.Controls[0];
                v.EnableView(enable);
            }

            this.LabelFlowOrder.Enabled = enable;
            this.CheckBoxApplyBeforeTransitions.Enabled = enable;
            this.CheckBoxApplyEquallyRankedFlowsSimultaneously.Enabled = enable;
        }
        public override void EnableView(bool enable)
        {
            if (this.PanelDistribution.Controls.Count > 0)
            {
                DataFeedView v = (DataFeedView)this.PanelDistribution.Controls[0];
                v.EnableView(enable);
            }

            this.TextBoxTotalAmount.Enabled   = enable;
            this.TextBoxNumCells.Enabled      = (enable && (!this.CheckBoxCalcFromDist.Checked));
            this.CheckBoxCalcFromDist.Enabled = enable;
            this.ButtonClearAll.Enabled       = enable;
        }
        protected override void InitializeView()
        {
            base.InitializeView();

            DataFeedView v1 = this.Session.CreateMultiRowDataFeedView(this.Scenario, this.ControllingScenario);

            this.PanelNonSpatial.Controls.Add(v1);

            this.m_RasterFilesView = this.Session.CreateMultiRowDataFeedView(this.Scenario, this.ControllingScenario);
            this.PanelSpatial.Controls.Add(this.m_RasterFilesView);

            this.ConfigureContextMenu();
        }
        public override void LoadDataFeed(DataFeed dataFeed)
        {
            base.LoadDataFeed(dataFeed);

            this.SetTextBoxBinding(this.TextBoxTotalAmount, Strings.DATASHEET_NSIC_TOTAL_AMOUNT_COLUMN_NAME);
            this.SetTextBoxBinding(this.TextBoxNumCells, Strings.DATASHEET_NSIC_NUM_CELLS_COLUMN_NAME);
            this.SetCheckBoxBinding(this.CheckBoxCalcFromDist, Strings.DATASHEET_NSIC_CALC_FROM_DIST_COLUMN_NAME);

            DataFeedView v = (DataFeedView)this.PanelDistribution.Controls[0];

            v.LoadDataFeed(dataFeed, Strings.DATASHEET_NSIC_DISTRIBUTION_NAME);

            this.RefreshBoundControls();
            this.CalculateCellSize();
        }
        /// <summary>
        /// Overrides EnableView
        /// </summary>
        /// <param name="enable"></param>
        /// <remarks>
        /// We override this so that we can manually enable the nested data feed view.  If we don't do this
        /// then the user will not be abled to interact with it at all if it is disabled and this is not really
        /// what we want here.  Also, we want to have control over the enabled state of the buttons.
        /// </remarks>
        public override void EnableView(bool enable)
        {
            if (this.PanelNonSpatial.Controls.Count > 0)
            {
                DataFeedView v = (DataFeedView)this.PanelNonSpatial.Controls[0];
                v.EnableView(enable);
            }

            if (this.PanelSpatial.Controls.Count > 0)
            {
                DataFeedView v = (DataFeedView)this.PanelSpatial.Controls[0];
                v.EnableView(enable);
            }

            this.LabelNonSpatial.Enabled = enable;
            this.LabelSpatial.Enabled    = enable;
        }
Example #17
0
        public override void EnableView(bool enable)
        {
            if (this.PanelSettings.Controls.Count > 0)
            {
                DataFeedView v = (DataFeedView)this.PanelSettings.Controls[0];
                v.EnableView(enable);
            }

            if (this.PanelMultipliers.Controls.Count > 0)
            {
                DataFeedView v = (DataFeedView)this.PanelMultipliers.Controls[0];
                v.EnableView(enable);
            }

            this.LabelSettings.Enabled    = enable;
            this.LabelMultipliers.Enabled = enable;
        }
Example #18
0
        protected override void InitializeView()
        {
            base.InitializeView();

            DataFeedView v = this.Session.CreateMultiRowDataFeedView(this.Scenario, this.ControllingScenario);

            this.PanelMain.Controls.Add(v);

            DataSheet ds = this.Project.GetDataSheet(Strings.DISTRIBUTION_TYPE_DATASHEET_NAME);

            try
            {
                this.m_TypeId = ds.ValidationTable.GetValue(Strings.DISTRIBUTION_TYPE_NAME_UNIFORM_INTEGER);
            }
            catch (Exception)
            {
                Debug.Assert(false);
            }
        }
Example #19
0
        public override void EnableView(bool enable)
        {
            if (this.PanelMultipliers.Controls.Count > 0)
            {
                DataFeedView v = (DataFeedView)this.PanelMultipliers.Controls[0];
                v.EnableView(enable);
            }

            this.TextBoxDEMFilename.Enabled = enable;

            if (enable)
            {
                this.EnableButtons();
            }
            else
            {
                this.ButtonBrowse.Enabled = false;
                this.ButtonClear.Enabled  = false;
            }

            this.LabelDEM.Enabled = enable;
            this.LabelTMV.Enabled = enable;
        }