Exemplo n.º 1
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[4];
            _inputParam[0] = new FileParam(TextStrings.lasFilename, "LAS Files(*.las)|*.las")
            {
                HelpText = TextStrings.LasFullpath
            };
            _inputParam[1] = new ExtentParam(TextStrings.RasterExtent)
            {
                HelpText           = TextStrings.GeographicExtent,
                DefaultToMapExtent = true
            };
            _inputParam[2] = new IntParam(TextStrings.NumRows)
            {
                HelpText = TextStrings.numberofrows
            };
            _inputParam[3] = new IntParam(TextStrings.NumColumns)
            {
                HelpText = TextStrings.numberofcolums
            };

            _outputParam    = new Parameter[2];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
            {
                HelpText = TextStrings.ResultRasterDirectory
            };
            _outputParam[1] = new BooleanParam(TextStrings.OutputParameter_AddToMap, TextStrings.OutputParameter_AddToMap_CheckboxText, true);
        }
Exemplo n.º 2
0
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam    = new Parameter[4];
            _inputParam[0] = new FileParam(TextStrings.lasFilename, "LAS Files(*.las)|*.las")
            {
                HelpText = TextStrings.LasFullpath
            };
            ExtentParam p = new ExtentParam(TextStrings.RasterExtent);

            p.HelpText           = TextStrings.GeographicExtent;
            p.DefaultToMapExtent = true;

            _inputParam[1] = p;

            _inputParam[2] = new IntParam(TextStrings.NumRows)
            {
                HelpText = TextStrings.numberofrows
            };

            _inputParam[3] = new IntParam(TextStrings.NumColumns)
            {
                HelpText = TextStrings.numberofcolums
            };

            _outputParam    = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputRaster)
            {
                HelpText = TextStrings.ResultRasterDirectory
            };
        }
Exemplo n.º 3
0
        private void CmdSelectClick(object sender, EventArgs e)
        {
            ExtentDialog dlg = new();

            Extent ext = null;

            if (Param != null)
            {
                ext = Param.Value;
            }
            dlg.Extent = ext; // Null clears the dialog, otherwise we use the specified values.

            if (dlg.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            if (Param == null)
            {
                Param = new ExtentParam("extent", dlg.Extent);
            }
            else
            {
                Param.Value = dlg.Extent;
            }

            lblExtent.Text = Param.Value.ToString();
            _tthelp.SetToolTip(lblExtent, Param.Value.ToString());
        }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new instance of ProjectionElement
 /// </summary>
 public ExtentElement(ExtentParam value)
 {
     _tthelp    = new ToolTip();
     base.Param = value;
     InitializeComponent();
     if (value == null)
     {
         return;
     }
     GroupBox.Text = value.Name;
     if (value.Value != null)
     {
         lblExtent.Text = value.Value.ToString();
     }
     value.ValueChanged += ParamValueChanged;
 }