Exemple #1
0
        private void cmdOK_Click(object sender, EventArgs e)
        {
            List <string> dList = (from object obj in groupBox1.Controls
                                   where obj.GetType() == typeof(CheckBox)
                                   select(CheckBox) obj
                                   into cbBox
                                   where cbBox.Checked
                                   select cbBox.Text).ToList();

            int          length      = PPF_APP.TXTFILE.Length;
            string       nameFileOut = string.Format("{0}_mod.txt", PPF_APP.TXTFILE.Substring(0, length - 4));
            StreamWriter sw          = new StreamWriter(nameFileOut, false);

            List <PPF_PntData> pds = PPF_APP.PNTDATA;

            foreach (PPF_PntData pd in pds)
            {
                if (dList.Contains(pd.Desc))
                {
                    string buf = string.Format("{0},{1},{2},{3},{4},{5} {6} {7}", pd.PntNum, pd.Y, pd.X, pd.Z, pd.Desc, pd.Code1, pd.Code2, pd.Code3);
                    buf = buf.TrimEnd();
                    sw.WriteLine(buf);
                }
            }

            sw.Close();

            PPF_APP.getDrawing(PPF_APP.DWGPATH);
        }
Exemple #2
0
        runApp()
        {
            PPF_APP.getFileToProcess();
            if ((TXTFILE == null))
            {
                return;
            }

            //FILEOUT = PPF_Process.procPntFile(TXTFILE);
            PPF_Process.procPntFile(TXTFILE);
            PPF_PostProcess.postProcPntFile();

            fPntDesc = null;

            fPntDesc = PPF_PntDesc.frmPntDesc;
            PPF_PntDesc.loadForm();
            Application.ShowModelessDialog(fPntDesc);
            //fPntDesc.ShowDialog();
            //Point Description form
            //Application.ShowModalDialog(fPntDesc);
        }