/// <summary> /// Shows the 'Symbol Details' dialog /// </summary> private void ShowDetailsDialog() { DetailedLineSymbolDialog detailsDialog = new DetailedLineSymbolDialog(_original); detailsDialog.ChangesApplied += detailsDialog_ChangesApplied; detailsDialog.ShowDialog(); }
/// <summary> /// Creates a new instance of PointSizeRangeControl /// </summary> public FeatureSizeRangeControl() { InitializeComponent(); _pointDialog = new DetailedPointSymbolDialog(); _pointDialog.ChangesApplied += _pointDialog_ChangesApplied; _lineDialog = new DetailedLineSymbolDialog(); _lineDialog.ChangesApplied += _lineDialog_ChangesApplied; }
/// <summary> /// Launches a form for editing the line symbolizer /// </summary> /// <param name="context"></param> /// <param name="provider"></param> /// <param name="value"></param> /// <returns></returns> public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { _original = value as ILineSymbolizer; if (_original == null) { return(value); } _copy = _original.Copy(); IWindowsFormsEditorService dialogProvider = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); DetailedLineSymbolDialog dialog = new DetailedLineSymbolDialog(_copy); dialog.ChangesApplied += DialogChangesApplied; if (dialogProvider.ShowDialog(dialog) != DialogResult.OK) { return(_original); } _original.CopyProperties(_copy); return(value); }
private void btnEditOutline_Click(object sender, EventArgs e) { DetailedLineSymbolDialog dlg; if (_original != null) { dlg = new DetailedLineSymbolDialog(_pattern.Outline); } else if (_pattern != null) { dlg = new DetailedLineSymbolDialog(_pattern.Outline); } else { return; } dlg.ChangesApplied += DlgChangesApplied; dlg.ShowDialog(); }