示例#1
0
        private void onTopDIBSclick(object sender, EventArgs e)
        {
            //  July 2017 -- changes to Region 8 volume equations
            //  This no longer looks for just product 08 tree but
            //  the window display is the same for all products
            //  just didn't rename the routine.
//            R8product08 r8prod08 = new R8product08();
//            r8prod08.Global.BL.fileName = Global.BL.fileName;
//            r8prod08.Global.BL.DAL = Global.BL.DAL;
//            int rResult = r8prod08.setupDialog();
//            if (rResult == 1)
//            {
//                r8prod08.ShowDialog();
//                DIBbySpecies = r8prod08.speciesDIB;
//            }   //  endif rResult
            //  July 2018 -- per Gary Scott
            //  use this dialog for region 8 instead
            // of the code above
            //  Save equations
            R9TopDIB r9DIB = new R9TopDIB();

            r9DIB.fileName = fileName;
            r9DIB.setupDialog();
            r9DIB.Show();
            DIBbySpecies = r9DIB.jstDIB;
        }
示例#2
0
        }   //  end onTopwoodCalculation

        private void onTopDIB(object sender, EventArgs e)
        {
            //  Need to save equations before user can change DIBs
            //  Remove all equations as they are rebuilt with either of these calls
            //volList.Clear();
            //Global.BL.fileName = fileName;
            //Global.BL.SaveVolumeEquations(volList);
            //if (taperEquations.Checked == true)
            //    CreateEquations("900CLKE");
            //else if (oldEquations.Checked == true)
            //    CreateEquations("900DVEE");

            //  Save equations
            Global.BL.SaveVolumeEquations(volList);
            R9TopDIB r9DIB = new R9TopDIB();

            r9DIB.fileName = fileName;
            r9DIB.setupDialog();
            r9DIB.Show();
            jstDIBs = r9DIB.jstDIB;
        }   //  end onTopDIB