/// <summary>
        /// Creates an instance of the dialog
        /// </summary>
        /// <param name="param">The parameter this element represents</param>
        public DateTimeElement(BooleanParam param)
        {
            //Needed by the designer
            InitializeComponent();

            this.Param = param;
            checkBox1.Text = param.CheckBoxText;
            GroupBox.Text = param.Name;

            Refresh();
        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[7];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster);
            _inputParam[0].HelpText = TextStrings.InputRasterforaverageslopecalculation;
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0);
            _inputParam[1].HelpText = TextStrings.InputZfactorforslopedisplay;
            _inputParam[2] = new BooleanParam(TextStrings.slopeinpercentage, TextStrings.boxSlopeInPercentage, false);
            _inputParam[2].HelpText = TextStrings.slopeinpercentage;
            _inputParam[3] = new FeatureSetParam(TextStrings.input1polygonfeatureset);
            _inputParam[3].HelpText = TextStrings.averageslopeinarribute;
            _inputParam[4] = new FeatureSetParam(TextStrings.inputtheareaofinterest);
            _inputParam[4].HelpText = TextStrings.featuresetcontainareainterest;
            _inputParam[5] = new IntParam(TextStrings.Indexofareaofinterestfeature, 0);
            _inputParam[5].HelpText = TextStrings.indexspecificarea;
            _inputParam[6] = new StringParam(TextStrings.Fieldnameforavrageslope, TextStrings.AveSlope);
            _inputParam[6].HelpText = TextStrings.Fieldnamecolomavrageslope;

            _outputParam = new Parameter[1];
            _outputParam[0] = new FeatureSetParam(TextStrings.Outputwithaverageslope);
            _outputParam[0].HelpText = TextStrings.SelecttheResultofOutput;
        }
        /// <summary>
        /// The Parameter array should be populated with default values here
        /// </summary>
        /// <returns></returns>
        public void Initialize()
        {
            _inputParam = new Parameter[3];
            _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster);
            _inputParam[0].HelpText = TextStrings.InputRasterforaverageslopecalculation;
            _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0);
            _inputParam[1].HelpText = TextStrings.InputZfactorforslopedisplay;
            _inputParam[2] = new BooleanParam(TextStrings.slopeinpercentage, TextStrings.boxSlopeInPercentage, false);
            _inputParam[2].HelpText = TextStrings.slopeinpercentageindegree;

            _outputParam = new Parameter[1];
            _outputParam[0] = new RasterParam(TextStrings.OutputslopeRaster);
            _outputParam[0].HelpText = TextStrings.Resultofaverageslope;
        }