예제 #1
0
파일: UIHelper.cs 프로젝트: vijaymca/Dotnet
        /// <summary>
        /// Sets the lat lon parameter.
        /// </summary>
        /// <param name="textBoxControl">The text box control.</param>
        /// <param name="parameterArray">The parameter array.</param>
        /// <returns></returns>
        protected ArrayList SetLatLonParameter(TextBox textBoxControl, ArrayList parameterArray)
        {
            Parameters objLatLongDeg = new Parameters();
            objLatLongDeg.Name = GetLatLonID(textBoxControl.ID);
            objLatLongDeg.Value = textBoxControl.Text;
            objLatLongDeg.Label = textBoxControl.ID;
            parameterArray.Add(objLatLongDeg);

            return parameterArray;
        }
예제 #2
0
 /// <summary>
 /// Sets the parameter properties.
 /// </summary>
 /// <param name="geologicalFieldValue">The geological field value.</param>
 /// <returns></returns>
 private Parameters SetParameterProperties(TextBox geologicalFieldValue)
 {
     Parameters objLatLon = new Parameters();
     objLatLon.Name = GetLatLonID(geologicalFieldValue.ID);
     objLatLon.Label = geologicalFieldValue.ID;
     objLatLon.Value = geologicalFieldValue.Text;
     return objLatLon;
 }