/// <summary> /// Creates an instance of the dialog /// </summary> /// <param name="param">The parameter this element represents</param> public BooleanElement(BooleanParam param) { //Needed by the designer InitializeComponent(); Param = param; checkBox1.Text = param.CheckBoxText; GroupBox.Text = param.Name; DoRefresh(); }
/// <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.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.slopeinpercentageindegree }; _outputParam = new Parameter[1]; _outputParam[0] = new RasterParam(TextStrings.OutputslopeRaster) { HelpText = TextStrings.Resultofaverageslope }; }
/// <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 }; }