Beispiel #1
0
 private void frmBuilding_Load(object sender, EventArgs e)
 {
     if (ProjectFile.LyrBuilding != -1)
     {
         FeatureLayer FeLyr    = PvMap.Layers[ProjectFile.LyrBuilding] as FeatureLayer;
         int          numShape = FeLyr.DataSet.NumRows();
         ISelection   selFe    = FeLyr.Selection;
         FeatureSet   Fe       = selFe.ToFeatureSet();
         grdBldg.Columns.Clear();
         int numSelShape = Fe.NumRows();
         grdBldg.DataSource = Fe.DataTable;
         lblRecordSel.Text  = "Number of selected shapes are: " + numSelShape.ToString() + " of " + numShape.ToString();
     }
 }
Beispiel #2
0
 private void frmTrees_Load(object sender, EventArgs e)
 {
     if (ProjectFile.LyrTree != -1)
     {
         lblTreeDetail.Text = "Tree form: " + TreeType + ", H(" + treeHeight + " m.), D(" + TreeDismeter + " m.)";
         FeatureLayer FeLyr    = PvMap.Layers[ProjectFile.LyrTree] as FeatureLayer;
         int          numShape = FeLyr.DataSet.NumRows();
         ISelection   selFe    = FeLyr.Selection;
         FeatureSet   Fe       = selFe.ToFeatureSet();
         grdTreeAttribute.Columns.Clear();
         int numSelShape = Fe.NumRows();
         grdTreeAttribute.DataSource = Fe.DataTable;
         lblRecordSel.Text           = "Number of selected shapes are: " + numSelShape.ToString() + " of " + numShape.ToString();
     }
 }