示例#1
0
        /// <summary>
        /// 指定した出力ストリームを出力ストリームリストから削除します
        /// </summary>
        /// <param name="stream">削除する出力ストリーム</param>
        public void RemoveOutputStream(IOutputStream stream)
        {
            bool removed = false;

            Utils.ReplaceCollection(ref outputStreams, orig => {
                var new_collection = new OutputStreamCollection(outputStreams);
                removed            = new_collection.Remove(stream);
                return(new_collection);
            });
            if (removed)
            {
                if (OutputStreamsChanged != null)
                {
                    OutputStreamsChanged(this, new EventArgs());
                }
            }
        }