Exemplo n.º 1
0
        private void StructureSetForm_Load(object sender, EventArgs e)
        {
            this.Text = title;
            int typeCount = 0;

            if (onlySelectMode)
            {
                listBox.Visible = false;
                editBtn.Visible = false;
                listBox.Items.Add(structureName[0]);
                typeIndex[0]          = RiverSimulationProfile.StructureType.StructureTypeSize;
                listBox.SelectedIndex = 0;
                ControllerUtility.InitialGridPictureBoxByProfile(ref mapPicBox, RiverSimulationProfile.profile);

                return;
            }

            for (int n = 0; n < StructureTypeNumber; ++n)
            {
                for (int i = 0; i < structureNum[n]; ++i)
                {
                    listBox.Items.Add(structureName[n] + (i + 1).ToString());
                    typeIndex[typeCount++] = (RiverSimulationProfile.StructureType)n;
                }
            }
            listBox.SelectedIndex = 0;
            ControllerUtility.InitialGridPictureBoxByProfile(ref mapPicBox, RiverSimulationProfile.profile);
        }
Exemplo n.º 2
0
        private void BoundaryConditionsForm_Load(object sender, EventArgs e)
        {
            waterModelingPanel.Visible = false;
            moveableBedPanel.Visible   = false;
            //p.ClearBackgroundMapType();
            ControllerUtility.SetHtmlUrl(comment, "Logo.html");
            ControllerUtility.InitialGridPictureBoxByProfile(ref mapPicBox, p);

            //p.boundaryUpVerticalDistribution = null;
            //p.boundaryDownVerticalDistribution = null;
            if (p.boundaryUpVerticalDistribution == null)
            {
                p.boundaryUpVerticalDistribution = new RiverSimulationProfile.TwoInOne(RiverSimulationProfile.TwoInOne.ValueType.Double, RiverSimulationProfile.TwoInOne.ArrayType.TwoDim);
            }
            if (p.boundaryUpVerticalDistribution.ArrayNull() || p.boundaryUpVerticalDistribution.ValueNull())
            {
                p.boundaryUpVerticalDistribution.CreateDouble2D(0, 0);
            }

            if (p.boundaryDownVerticalDistribution == null)
            {
                p.boundaryDownVerticalDistribution = new RiverSimulationProfile.TwoInOne(RiverSimulationProfile.TwoInOne.ValueType.Double, RiverSimulationProfile.TwoInOne.ArrayType.TwoDim);
            }
            if (p.boundaryDownVerticalDistribution.ArrayNull() || p.boundaryDownVerticalDistribution.ValueNull())
            {
                p.boundaryDownVerticalDistribution.CreateDouble2D(0, 0);
            }
            LoadStatus();
            UpdateStatus();
        }
Exemplo n.º 3
0
        private void InitialConditionsForm_Load(object sender, EventArgs e)
        {
            ControllerUtility.SetHtmlUrl(comment, "Logo.html");
            ControllerUtility.InitialGridPictureBoxByProfile(ref mapPicBox, p);

            LoadStatus();
            UpdateStatus();
        }
Exemplo n.º 4
0
        private void WaterModelingForm_Load(object sender, EventArgs e)
        {
            valueParamPanel.Visible    = false;     //隱藏數值參數面板
            physicalParamPanel.Visible = false;     //隱藏物理參數面板

            ControllerUtility.SetHtmlUrl(comment, "Logo.html");
            ControllerUtility.InitialGridPictureBoxByProfile(ref mapPicBox, p);
            mapPicBox.Visible = true;

            LoadStatus();
            UpdateStatus();
        }
        private void StructureSetForm_Load(object sender, EventArgs e)
        {
            this.Text = title;

            if (sideOutObjects != null)
            {
                for (int i = 0; i < sideOutObjects.Length; ++i)
                {
                    listBox.Items.Add("側出流" + (i + 1).ToString());
                }
            }

            if (sideInObjects != null)
            {
                for (int i = 0; i < sideInObjects.Length; ++i)
                {
                    listBox.Items.Add("側入流" + (i + 1).ToString());
                }
            }

            listBox.SelectedIndex = 0;
            ControllerUtility.InitialGridPictureBoxByProfile(ref mapPicBox, RiverSimulationProfile.profile);
        }
Exemplo n.º 6
0
        private void MovableBedForm_Load(object sender, EventArgs e)
        {
            valueParamPanel.Visible        = false;
            physicalParamPanel.Visible     = false;
            seabedCompositionPanel.Visible = false;
            rockStablePanel.Visible        = false;
            rockbedPanel.Visible           = false;
            transSandMethodPanel.Visible   = false;

            ControllerUtility.SetHtmlUrl(comment, "Logo.html");
            ControllerUtility.InitialGridPictureBoxByProfile(ref mapPicBox, p);

            mapPicBox.Visible = true;

            previewSedimentCompositionPanel.Size = mapPicBox.Size;
            previewSedimentCompositionPanel.Top  = mapPicBox.Top;
            previewSedimentCompositionPanel.Left = mapPicBox.Left;
            InitPreviewCombo();
            previewCombo.SelectedIndex = (int)(PreviewType.GridMap) - 1;


            LoadStatus();
            UpdateStatus();
        }