/// <summary> /// The Parameter array should be populated with default values here /// </summary> /// <returns></returns> void ITool.Initialize() { _inputParam = new Parameter[2]; _inputParam[0] = new LineFeatureSetParam(TextStrings.LineFeatureSet); _inputParam[1] = new DoubleParam(TextStrings.Tolerance); _inputParam[1].Value = 10.0; _outputParam = new Parameter[1]; _outputParam[0] = new LineFeatureSetParam(TextStrings.LineFeatureSet); }
/// <summary> /// Creates an instance of the dialog /// </summary> /// <param name="inputParam">The parameter this element represents</param> /// <param name="dataSets">An array of available data</param> public LineElement(LineFeatureSetParam inputParam, List<DataSetArray> dataSets) { //Needed by the designer InitializeComponent(); //We save the parameters passed in base.Param = inputParam; _dataSets = dataSets; //Saves the label this.GroupBox.Text = Param.Name; Refresh(); }
/// <summary> /// Creates an instance of the dialog /// </summary> /// <param name="outputParam">The parameter this element represents</param> /// <param name="dataSets">An array of available data</param> public LineElementOut(LineFeatureSetParam outputParam, List<DataSetArray> dataSets) { //Needed by the designer InitializeComponent(); //We save the parameters passed in base.Param = outputParam; //Saves the label base.GroupBox.Text = Param.Name; //Sets up the initial status light indicator base.Status = ToolStatus.Empty; base.LightTipText = MapWindow.MessageStrings.FeaturesetMissing; //Populates the dialog with the default parameter value if (outputParam.Value != null && outputParam.DefaultSpecified == true) { textBox1.Text = outputParam.ModelName; base.Status = ToolStatus.Ok; base.LightTipText = MapWindow.MessageStrings.FeaturesetValid; } }
/// <summary> /// The parameters array should be populated with default values here /// </summary> /// <returns></returns> public void Initialize() { _inputParam = new Parameter[2]; _inputParam[0] = new PolygonFeatureSetParam(TextStrings.input1PolygonShapefile); _inputParam[0].HelpText = TextStrings.InputPolygonforCliping; _inputParam[1] = new LineFeatureSetParam(TextStrings.input2LineforCliping); _inputParam[1].HelpText = TextStrings.Inputlineforcliping; _outputParam = new Parameter[1]; //_outputParam[0] = new PolygonFeatureSetParam(TextStrings.OutputShapefile); _outputParam[0] = new FeatureSetParam(TextStrings.ResultShapefile); _outputParam[0].HelpText = TextStrings.SelectResultShapefileDirectory; }