private void TagEditor_OnChanged(ITagEditor source) { Application.Current.Dispatcher.BeginInvoke(new Action(() => { ForceNewHighlighting(Settings); UpdateMargins(Settings); })); }
/// <summary> /// リソースを破棄します。 /// </summary> public void Dispose() { if( this._editor != null ) { this._editor.Dispose(); this._editor = null; } GC.SuppressFinalize( this ); }
/// <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(); } }
private void TagEditor_OnChanged(ITagEditor source) { ForceNewHighlighting(Settings); UpdateMargins(Settings); }