/// <summary> /// Creates an instance of the dialog /// </summary> /// <param name="param">The parameter this element represents</param> public StringElement(StringParam param) { //Needed by the designer InitializeComponent(); GroupBox.Text = param.Name; //We save the parameters passed in Param = param; SetupDefaultLighting(); }
/// <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.inputRaster); _inputParam[0].HelpText = TextStrings.InputRasternoValue; _inputParam[1] = new StringParam(TextStrings.Optional); _inputParam[1].HelpText = TextStrings.Optionaltochange; _inputParam[2]=new StringParam(TextStrings.UserNewValues); _inputParam[2].HelpText = TextStrings.UserinputNewValue; _outputParam = new Parameter[1]; _outputParam[0] = new RasterParam(TextStrings.OutputRaster); _outputParam[0].HelpText = TextStrings.newrastername; }