private void btnProcess_Click(object sender, EventArgs e)
 {
     if (cboDepthLayer.Text == "" || cboLineLayer.Text == ""  || cboShoreline.Text == "" || txtDistInterval.Text == "")
     {
         MessageBox.Show("All data controls must be populated to continue.");
         return;
     }
     clsInterpFunctions Functions = new clsInterpFunctions();
     Functions.CalculatePoints(cboLineLayer.Text,  cboShoreline.Text, cboDepthLayer.Text, Convert.ToInt32(txtDistInterval.Text), cboShoreDepthField.Text, cboDepthlayerDepthfield.Text );
     this.Close();
 }
 private void FillDepthPointsDepthField()
 {
     this.cboDepthlayerDepthfield .Items.Clear();
     clsInterpFunctions Functions = new clsInterpFunctions();
     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);
     }
 }