コード例 #1
0
ファイル: Grading_Utility.cs プロジェクト: 15831944/EM
        public static void updateSurfaces()
        {
            try
            {
                Grading_Palette.gPalette.pGrading.BlockXRefName = String.Empty;
                Grading_Palette.gPalette.pGrading.Initialize_Form();

                myForms.GradeFloor pGF = Grading_Palette.gPalette.pGradeFloor;

                pGF.lstBox1.Items.Clear();

                List <string> surfaces = Surf.getSurfaces();
                if (surfaces != null)
                {
                    for (int i = 0; i < surfaces.Count; i++)
                    {
                        pGF.lstBox1.Items.Add(surfaces[i].ToUpper());
                        if (surfaces[i].ToUpper() == "EXIST")
                        {
                            pGF.lstBox1.SelectedIndex = i;
                        }
                    }
                }
            }
            catch (System.Exception ex)
            {
                BaseObjs.writeDebug(ex.Message + " Grading_Utility.cs: line: 543");
            }
        }
コード例 #2
0
 private Grading_Palette()
 {
     pGradeFloor = new myForms.GradeFloor();
     pGradePlane = new myForms.GradeTiltedPlane();
     pGrading    = new myForms.GradeSite();
     pGradeSlope = new myForms.GradeSlope();
     pUpdateCNTL = new myForms.updateCNTL();
 }