コード例 #1
0
 internal DynamicFeatureLayer(Canvas dynamicLayerElement)
     : base()
 {
     _symbolSelector              = this;//default symbolselector
     _dynamicLayerCanvas          = dynamicLayerElement;
     _features.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(_features_CollectionChanged);
 }
コード例 #2
0
        /// <summary>
        /// Sets the Symbol Selector
        /// </summary>
        /// <param name="selector">Symbol Selector</param>
        public void SetSymbolSelector(ISymbolSelector selector)
        {
            this._selector = selector;
            if (this._selector != null)
            {
                this._selector.IncludeDeliminator = this._includeDelim;
            }

            String name;

            if (selector == null)
            {
                name = String.Empty;
            }
            else if (selector is WhiteSpaceSelector)
            {
                name = "WhiteSpace";
            }
            else if (selector is PunctuationSelector)
            {
                name = "Punctuation";
            }
            else if (selector is WhiteSpaceOrPunctuationSelection)
            {
                name = "All";
            }
            else if (selector is DefaultSelector)
            {
                name = "Default";
            }
            else
            {
                name = String.Empty;
            }
            this.SetCurrentSymbolSelectorChecked(name);
        }
コード例 #3
0
ファイル: EditorManager.cs プロジェクト: jbunzel/MvcRQ_git
        /// <summary>
        /// Sets the Symbol Selector
        /// </summary>
        /// <param name="selector">Symbol Selector</param>
        public void SetSymbolSelector(ISymbolSelector selector)
        {
            this._selector = selector;
            if (this._selector != null)
            {
                this._selector.IncludeDeliminator = this._includeDelim;
            }

            String name;
            if (selector == null)
            {
                name = String.Empty;
            }
            else if (selector is WhiteSpaceSelector)
            {
                name = "WhiteSpace";
            }
            else if (selector is PunctuationSelector)
            {
                name = "Punctuation";
            }
            else if (selector is WhiteSpaceOrPunctuationSelection)
            {
                name = "All";
            }
            else if (selector is DefaultSelector)
            {
                name = "Default";
            }
            else 
            {
                name = String.Empty;
            }
            this.SetCurrentSymbolSelectorChecked(name);
        }