Example #1
0
        /// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="param">The parameter this element represents</param>
        public ListElement(ListParam param)
        {
            //Needed by the designer
            InitializeComponent();
            GroupBox.Text = param.Name;

            //We save the parameters passed in
            Param = param;

            DoRefresh();

            //Update the state of the status light
            ComboBox1SelectedValueChanged(null, null);
        }
Example #2
0
        /// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="param">The parameter this element represents</param>
        public ListElement(ListParam param)
        {
            //Needed by the designer
            InitializeComponent();
            GroupBox.Text = param.Name;

            //We save the parameters passed in
            Param = param;

            DoRefresh();

            //Update the state of the status light
            ComboBox1SelectedValueChanged(null, null);
        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        public override void Initialize()
        {
            _inputParam = new Parameter[7];
            _inputParam[0] = new PointFeatureSetParam(TextStrings.PointFeatureSet);
            _inputParam[1] = new ListParam(TextStrings.Zvalue) { HelpText = TextStrings.layercontainsvalues };
            _inputParam[2] = new DoubleParam(TextStrings.CellSize, 0, 0, double.MaxValue)
                                 {
                                     HelpText = TextStrings.Thecellsizeingeographicunits
                                 };
            _inputParam[3] = new DoubleParam(TextStrings.Power, 2, 1, double.MaxValue)
                                 {
                                     HelpText = TextStrings.Theinfluenceofdistance
                                 };
            _neighborhoodType = new List<string> { TextStrings.FixedDistance, TextStrings.FixedCount };
            _inputParam[4] = new ListParam(TextStrings.NeighborhoodType, _neighborhoodType, 0)
                                 {
                                     HelpText = TextStrings.Selectthetypeofneighborhood
                                 };
            _inputParam[5] = new IntParam(TextStrings.MinMaxnumberofpoints, 12, 0, int.MaxValue)
                                 {
                                     HelpText = TextStrings.FixedDistanceHelpText
                                 };
            _inputParam[6] = new DoubleParam(TextStrings.MinMaxdistance, 0, 0, double.MaxValue)
                                 {
                                     HelpText = TextStrings.FixedDistanceHelpText
                                 };

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.Raster);
        }
 /// <summary>
 /// The Parameter array should be populated with default values here
 /// </summary>
 public override void Initialize()
 {
     _inputParam = new Parameter[4];
     _inputParam[0] = new FeatureSetParam(TextStrings.input1polygontoRaster)
                          {
                              HelpText = TextStrings.InputPolygontochange
                          };
     _inputParam[2] = new DoubleParam(TextStrings.DesiredCellSize) { HelpText = TextStrings.Themaximumnumber };
     _inputParam[1] = new ListParam(TextStrings.stringnameoffield) { HelpText = TextStrings.Thevalueofeachcell };
     _outputParam = new Parameter[1];
     _outputParam[0] = new RasterParam(TextStrings.OutputRaster) { HelpText = TextStrings.Resultofaverageslope };
 }