Esempio n. 1
0
        private void DfsuHydroMike3()
        {
            FileInfo fi = new FileInfo(textBoxFile3.Text);

            if (!fi.Exists)
            {
                richTextBoxStatus.Text = "File [" + fi.FullName + "] does not exist.\r\n";
                return;
            }

            using (DFSU dfsu = new DFSU(fi))
            {
                dfsu.CSSPDHIChanged += CSSPDHIChanged;
                dfsu.CSSPDHIChanged -= CSSPDHIChanged;
            }
        }
Esempio n. 2
0
        private void DoGetStudyArea()
        {
            FileInfo fi = new FileInfo(textBoxFile1.Text);

            using (DFSU dfsu = new DFSU(fi))
            {
                List <ContourPolygon> contourPolygonList = new List <ContourPolygon>();

                dfsu.GetStudyAreaContourPolygonList(contourPolygonList);
                richTextBoxStatus.AppendText("contourPolygonList.Count() = " + contourPolygonList.Count + "\r\n");

                foreach (ContourPolygon cp in contourPolygonList)
                {
                    richTextBoxStatus.AppendText("Number of nodes " + cp.ContourNodeList.Count() + "\r\n");
                }
            }
        }