private void FillDepthPointsDepthField() { this.cboDepthlayerDepthfield.Items.Clear(); clsAutoInterpolate Functions = new clsAutoInterpolate(); IMxDocument pmxdoc = ArcMap.Document as IMxDocument; IMap pmap = pmxdoc.FocusMap; IFeatureLayer player = Functions.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_1(object sender, EventArgs e) { if((txtDistInterval.Text.Length ==0) || (txtShorelinePointInterval.Text.Length ==0)||(cboDepthLayer.Text.Length == 0)||(cboShoreDepthField.Text.Length ==0)||(cboShorelineLayer.Text.Length ==0)) { MessageBox.Show ("All fields must be populated to continue."); return; } clsAutoInterpolate Functions = new clsAutoInterpolate(); //Make an empty line featureclass Functions.MakeScratchLines(); Functions.MakeScratchPoints(); Functions.PlotShorePoints(cboShorelineLayer.Text, Convert.ToDouble (txtShorelinePointInterval.Text)); Functions.Calculate(cboShorelineLayer.Text, cboDepthLayer.Text, Convert.ToDouble(txtDistInterval.Text), cboShoreDepthField.Text, cboDepthlayerDepthfield.Text); this.Close(); }
private void btnProcess_Click_1(object sender, EventArgs e) { if ((txtDistInterval.Text.Length == 0) || (txtShorelinePointInterval.Text.Length == 0) || (cboDepthLayer.Text.Length == 0) || (cboShoreDepthField.Text.Length == 0) || (cboShorelineLayer.Text.Length == 0)) { MessageBox.Show("All fields must be populated to continue."); return; } clsAutoInterpolate Functions = new clsAutoInterpolate(); //Make an empty line featureclass Functions.MakeScratchLines(); Functions.MakeScratchPoints(); Functions.PlotShorePoints(cboShorelineLayer.Text, Convert.ToDouble(txtShorelinePointInterval.Text)); Functions.Calculate(cboShorelineLayer.Text, cboDepthLayer.Text, Convert.ToDouble(txtDistInterval.Text), cboShoreDepthField.Text, cboDepthlayerDepthfield.Text); this.Close(); }
private void FillDepthPointsDepthField() { this.cboDepthlayerDepthfield.Items.Clear(); clsAutoInterpolate Functions = new clsAutoInterpolate(); IMxDocument pmxdoc = ArcMap.Document as IMxDocument; IMap pmap = pmxdoc.FocusMap; IFeatureLayer player = Functions.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); } }