Example #1
0
        /// <summary>
        /// Shows the 'Symbol Details' dialog
        /// </summary>
        private void ShowDetailsDialog()
        {
            DetailedLineSymbolDialog detailsDialog = new DetailedLineSymbolDialog(_original);

            detailsDialog.ChangesApplied += detailsDialog_ChangesApplied;
            detailsDialog.ShowDialog();
        }
Example #2
0
 /// <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;
 }
Example #3
0
        /// <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);
        }
Example #4
0
        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();
        }