private void ExportClick(object sender, EventArgs e)
 {
     saveFileDialog1.Filter = "Supported formats|*.ply;";
     if (saveFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK && hasInputFile)
     {
         System.IO.File.WriteAllText(saveFileDialog1.FileName, ImporterPCL.Export(data, saveFileDialog1.FileName));
     }
 }
 private void OpenFileBtn(object sender, EventArgs e)
 {
     openFileDialog1.Filter = "Supported formats|*.ply;";
     if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         hasInputFile = true;
         //System.IO.StreamReader sr = new
         //System.IO.StreamReader(openFileDialog1.FileName);
         fileTextBox.Text = openFileDialog1.FileName;
         //MessageBox.Show(sr.ReadToEnd());
         //sr.Close();
         data = ImporterPCL.Load(openFileDialog1.FileName);
         MessageBox.Show(data.Debug(20));
     }
     else
     {
         hasInputFile = false;
     }
 }