// currently not used
        //private void TriConBrowse_Click(object sender, EventArgs e)
        //{
        //  var ofd = new OpenFileDialog();
        //  ofd.Filter = "Ground model | *.txt";
        //  ofd.Title = "Open Ground model";
        //  if (ofd.ShowDialog() == DialogResult.OK)
        //  {
        //    TriConnection.Text = ofd.FileName;
        //  }
        //  ValidateData();
        //}

        //private void TriCon_TextChanged(object sender, EventArgs e)
        //{
        //  if (System.IO.File.Exists((sender as TextBox).Text.Trim(' ').Trim('"')))
        //  {
        //    groundModel = new PCS.Vector.TRIConnection();
        //    groundModel.FilePath = TriConnection.Text;
        //    groundModel.Load(TriConnection.Text.Trim(' ').Trim('"'));
        //  }
        //  ValidateData();
        //}

        private void TreeLocations_TextChanged(object sender, EventArgs e)
        {
            var path = (sender as TextBox).Text.Trim(' ').Trim('"');

            if (System.IO.File.Exists(path))
            {
                treeLocations = new ShapeFile.ShapeCollection(ShapeFile.ShapeType.ShapeTypePointZ, false);
                treeLocations.LoadSHP(path);
            }
            ValidateData();
        }
        public SinTreeAutoClassification(float intensityEstimation, float neighbourhoodEstimation, List <byte> sourceClasses, ShapeFile.ShapeCollection treeLocations)
        {
            this.intensityEstimation     = intensityEstimation;
            this.neighbourhoodEstimation = neighbourhoodEstimation;
            this.sourceClasses           = sourceClasses;
            // this.groundModel = groundModel;  // currently not used
            this.treeLocations = treeLocations;

            ////Initialize license server connection
            //PCS.Program.CreateSKL();
            //PCS.Program.CreateLicenseServiceConnection0();
            //DC_LasReader.Globals.LicenseService = PCS.Program.LicenseService;
            // TODO: initialize unmamanged parts, reusable resources
        }