/// <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> public override void Initialize() { _inputParam = new Parameter[3]; _inputParam[0] = new RasterParam(TextStrings.inputRaster) { HelpText = TextStrings.InputRasternoValue }; _inputParam[1] = new StringParam(TextStrings.Optional) { HelpText = TextStrings.Optionaltochange }; _inputParam[2] = new StringParam(TextStrings.UserNewValues) { HelpText = TextStrings.UserinputNewValue }; _outputParam = new Parameter[1]; _outputParam[0] = new RasterParam(TextStrings.OutputRaster) { HelpText = TextStrings.newrastername }; }
/// <summary> /// The Parameter array should be populated with default values here /// </summary> public override void Initialize() { _inputParam = new Parameter[7]; _inputParam[0] = new RasterParam(TextStrings.input1altitudeRaster) { HelpText = TextStrings.InputRasterforaverageslopecalculation }; _inputParam[1] = new DoubleParam(TextStrings.inputZfactor, 1.0) { HelpText = TextStrings.InputZfactorforslopedisplay }; _inputParam[2] = new BooleanParam(TextStrings.slopeinpercentage, TextStrings.boxSlopeInPercentage, false) { HelpText = TextStrings.slopeinpercentage }; _inputParam[3] = new FeatureSetParam(TextStrings.input1polygonfeatureset) { HelpText = TextStrings.averageslopeinarribute }; _inputParam[4] = new FeatureSetParam(TextStrings.inputtheareaofinterest) { HelpText = TextStrings.featuresetcontainareainterest }; _inputParam[5] = new IntParam(TextStrings.Indexofareaofinterestfeature, 0) { HelpText = TextStrings.indexspecificarea }; _inputParam[6] = new StringParam(TextStrings.Fieldnameforavrageslope, TextStrings.AveSlope) { HelpText = TextStrings.Fieldnamecolomavrageslope }; _outputParam = new Parameter[1]; _outputParam[0] = new FeatureSetParam(TextStrings.Outputwithaverageslope) { HelpText = TextStrings.SelecttheResultofOutput }; }