private void FillDepthPointsDepthField() { this.cboDepthlayerDepthfield.Items.Clear(); clsDeepInterpolation InterpFunctions = new clsDeepInterpolation(); IMxDocument pmxdoc = ArcMap.Document as IMxDocument; IMap pmap = pmxdoc.FocusMap; IFeatureLayer player = InterpFunctions.FindLayer(pmap, cboDepthLayer.Text) as IFeatureLayer; for (int i = 0; i <= player.FeatureClass.Fields.FieldCount - 1; i++) { cboDepthlayerDepthfield.Items.Add(player.FeatureClass.Fields.get_Field(i).Name); } }
private void btnProcess_Click(object sender, EventArgs e) { if (cboDepthLayer.Text == "" || txtDistInterval.Text == "") { MessageBox.Show("All data controls must be populated to continue."); return; } clsDeepInterpolation InterpFunctions = new clsDeepInterpolation(); InterpFunctions.GeneratePoints2(this.cboShorelineLayer.Text, cboDepthLayer.Text, Convert.ToDouble(txtDistInterval.Text), cboDepthlayerDepthfield.Text); //InterpFunctions.GeneratePoints2(this.cboShorelineLayer.Text, cboDepthLayer.Text, cboOutpoints.Text,Convert.ToDouble (txtDistInterval.Text),cboDepthlayerDepthfield.Text); this.Close(); }
private void btnProcess_Click(object sender, EventArgs e) { if (cboDepthLayer.Text == "" || txtDistInterval.Text == "") { MessageBox.Show("All data controls must be populated to continue."); return; } clsDeepInterpolation InterpFunctions = new clsDeepInterpolation(); InterpFunctions.GeneratePoints2(this.cboShorelineLayer.Text, cboDepthLayer.Text, Convert.ToDouble(txtDistInterval.Text), cboDepthlayerDepthfield.Text); //InterpFunctions.GeneratePoints2(this.cboShorelineLayer.Text, cboDepthLayer.Text, cboOutpoints.Text,Convert.ToDouble (txtDistInterval.Text),cboDepthlayerDepthfield.Text); this.Close(); }
private void FillDepthPointsDepthField() { this.cboDepthlayerDepthfield.Items.Clear(); clsDeepInterpolation InterpFunctions = new clsDeepInterpolation(); IMxDocument pmxdoc = ArcMap.Document as IMxDocument; IMap pmap = pmxdoc.FocusMap; IFeatureLayer player = InterpFunctions.FindLayer(pmap, cboDepthLayer.Text) as IFeatureLayer; for (int i = 0; i <= player.FeatureClass.Fields.FieldCount - 1; i++) { cboDepthlayerDepthfield.Items.Add(player.FeatureClass.Fields.get_Field(i).Name); } }