/// <summary> /// Creates a new instance of ProjectionElement /// </summary> public ProjectionElement(ProjectionParam value) { _tthelp = new ToolTip(); base.Param = value; InitializeComponent(); if (value == null) return; GroupBox.Text = value.Name; if (value.Value != null) { lblProjection.Text = value.Value.ToProj4String(); } value.ValueChanged += ParamValueChanged; }
/// <summary> /// Creates a new instance of ProjectionElement /// </summary> public ProjectionElement(ProjectionParam value) { _tthelp = new ToolTip(); base.Param = value; InitializeComponent(); if (value == null) { return; } GroupBox.Text = value.Name; if (value.Value != null) { lblProjection.Text = value.Value.ToProj4String(); } value.ValueChanged += ParamValueChanged; }
private void CmdSelectClick(object sender, EventArgs e) { ProjectionSelectDialog dlg = new ProjectionSelectDialog(); if (dlg.ShowDialog() != DialogResult.OK) { return; } if (Param == null) { Param = new ProjectionParam("destination projection", dlg.SelectedCoordinateSystem); } else { Param.Value = dlg.SelectedCoordinateSystem; } lblProjection.Text = Param.Value.ToProj4String(); _tthelp.SetToolTip(lblProjection, Param.Value.ToProj4String()); }
/// <summary> /// The parameters array should be populated with default values here /// </summary> public override void Initialize() { _inputParam = new Parameter[3]; _inputParam[0] = new FeatureSetParam(TextStrings.InputFeatureSet) { HelpText = TextStrings.InputFeatureSettoreproject }; _inputParam[1] = new ProjectionParam(TextStrings.SourceProjection) { HelpText = TextStrings.sourceprojectiondifferent }; _inputParam[2] = new ProjectionParam(TextStrings.DesiredOutputProjection) { HelpText = TextStrings.Thedestinationprojection }; _outputParam = new Parameter[1]; _outputParam[0] = new FeatureSetParam(TextStrings.OutputFeatureSet) { HelpText = TextStrings.SelectResultFeatureSetDirectory }; }
private void CmdSelectClick(object sender, EventArgs e) { ProjectionSelectDialog dlg = new ProjectionSelectDialog(); if (dlg.ShowDialog() != DialogResult.OK) return; if (Param == null) { Param = new ProjectionParam("destination projection", dlg.SelectedCoordinateSystem); } else { Param.Value = dlg.SelectedCoordinateSystem; } lblProjection.Text = Param.Value.ToProj4String(); _tthelp.SetToolTip(lblProjection, Param.Value.ToProj4String()); }