예제 #1
0
 private void TagEditor_OnChanged(ITagEditor source)
 {
     Application.Current.Dispatcher.BeginInvoke(new Action(() =>
     {
         ForceNewHighlighting(Settings);
         UpdateMargins(Settings);
     }));
 }
예제 #2
0
        /// <summary>
        /// リソースを破棄します。
        /// </summary>
        public void Dispose()
        {
            if( this._editor != null )
            {
                this._editor.Dispose();
                this._editor = null;
            }

            GC.SuppressFinalize( this );
        }
예제 #3
0
        /// <summary>
        /// インスタンスを初期化します。
        /// </summary>
        /// <param name="src">編集対象とするメタデータのストリーム。</param>
        /// <exception cref="NotSupportedException">src にサポートされていない形式のデータが指定されました。</exception>
        public TagEditor( Stream src )
        {
            if( src == null || src.Length == 0 ) { throw new ArgumentException( "'src' is null or empty." ); }

            if( AsfTagEditor.IsSupportedFile( src ) )
            {
                this._editor = new AsfTagEditor( src );
            }
            else
            {
                throw new NotSupportedException();
            }
        }
예제 #4
0
 private void TagEditor_OnChanged(ITagEditor source)
 {
     ForceNewHighlighting(Settings);
     UpdateMargins(Settings);
 }