private void btnQuantitySelect_Click(object sender, EventArgs e)
 {
     if (cboEchosounderPoints.Text == "" || cboSedimentCores.Text == "" || txtNumPoints.Text == "")
     {
         MessageBox.Show("All data fields must be completed and valid before processing");
         return;
     }
     clsPingFunctions PingFunctions = new clsPingFunctions();
     PingFunctions.CalculatePingsNPoints(cboEchosounderPoints.Text, cboSedimentCores.Text,cboDepthField.Text , Convert.ToInt32(txtNumPoints.Text), Convert.ToDouble (this.txtIteration.Text));
     this.Close();
 }
        private void btnRangeSelect_Click(object sender, EventArgs e)
        {
            if (cboEchosounderPoints.Text == "" || cboSedimentCores.Text == "" || txtRange.Text == "" || cbounits.Text == "")
            {
                MessageBox.Show("All data fields must be completed and valid before processing");
                return;
            }

            clsPingFunctions PingFunctions = new clsPingFunctions();
            PingFunctions.CalculatePingsWithDistance(cboEchosounderPoints.Text, cboSedimentCores.Text,cboDepthField.Text , Convert.ToDouble(txtRange.Text), cbounits.Text);
            this.Close();
        }
Exemple #3
0
        private void btnQuantitySelect_Click(object sender, EventArgs e)
        {
            if (cboEchosounderPoints.Text == "" || cboSedimentCores.Text == "" || txtNumPoints.Text == "")
            {
                MessageBox.Show("All data fields must be completed and valid before processing");
                return;
            }
            clsPingFunctions PingFunctions = new clsPingFunctions();

            PingFunctions.CalculatePingsNPoints(cboEchosounderPoints.Text, cboSedimentCores.Text, cboDepthField.Text, Convert.ToInt32(txtNumPoints.Text), Convert.ToDouble(this.txtIteration.Text));
            this.Close();
        }
Exemple #4
0
        private void FillDepthField()
        {
            cboDepthField.Items.Clear();
            clsPingFunctions PingFunctions = new clsPingFunctions();
            IMxDocument      pmxdoc        = ArcMap.Document as IMxDocument;
            IMap             pmap          = pmxdoc.FocusMap;
            IFeatureLayer    player        = PingFunctions.FindLayer(pmap, cboEchosounderPoints.Text) as IFeatureLayer;

            for (int i = 0; i <= player.FeatureClass.Fields.FieldCount - 1; i++)
            {
                cboDepthField.Items.Add(player.FeatureClass.Fields.get_Field(i).Name);
            }
        }
Exemple #5
0
        private void btnRangeSelect_Click(object sender, EventArgs e)
        {
            if (cboEchosounderPoints.Text == "" || cboSedimentCores.Text == "" || txtRange.Text == "" || cbounits.Text == "")
            {
                MessageBox.Show("All data fields must be completed and valid before processing");
                return;
            }


            clsPingFunctions PingFunctions = new clsPingFunctions();

            PingFunctions.CalculatePingsWithDistance(cboEchosounderPoints.Text, cboSedimentCores.Text, cboDepthField.Text, Convert.ToDouble(txtRange.Text), cbounits.Text);
            this.Close();
        }
 private void FillDepthField()
 {
     cboDepthField.Items.Clear();
     clsPingFunctions PingFunctions = new clsPingFunctions();
     IMxDocument pmxdoc = ArcMap.Document as IMxDocument;
     IMap pmap = pmxdoc.FocusMap;
     IFeatureLayer player = PingFunctions.FindLayer(pmap, cboEchosounderPoints.Text) as IFeatureLayer;
     for (int i = 0; i <= player.FeatureClass.Fields.FieldCount - 1; i++)
     {
         cboDepthField.Items.Add(player.FeatureClass.Fields.get_Field(i).Name);
     }
 }