//
 // Interface
 //
 // Constructors
 public MessageJournalFilter( MessageJournal journal )
 {
     if ( null == journal ) {
         throw new ArgumentNullException( "journal" );
     }
     _journal = journal;
     _SubscribeToCollectionChangedEvent( );
 }
        //
        // Interface
        //

        // Constructors

        public MessageJournalFilter(MessageJournal journal)
        {
            if (null == journal)
            {
                throw new ArgumentNullException("journal");
            }
            _journal = journal;
            _SubscribeToCollectionChangedEvent( );
        }
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    _UnsubscribeFromCollectionChangedEvent( );
                    _journal = null;
                    _filters = null;
                }

                disposedValue = true;
            }
        }
 public MessageJournalFilter(MessageJournal journal, IList <FilterAndHandler> list) : this( journal ) {
     Subscribe(list);
 }
 public MessageJournalFilter(MessageJournal journal, FilterFuncType filter, HandlerFuncType handler) : this( journal ) {
     Subscribe(filter, handler);
 }
 public MessageJournalFilter( MessageJournal journal, IList<FilterAndHandler> list )
     : this(journal)
 {
     Subscribe( list );
 }
 public MessageJournalFilter( MessageJournal journal, FilterFuncType filter, HandlerFuncType handler )
     : this(journal)
 {
     Subscribe( filter, handler );
 }
        protected virtual void Dispose( bool disposing )
        {
            if ( !disposedValue ) {
                if ( disposing ) {
                    _UnsubscribeFromCollectionChangedEvent( );
                    _journal = null;
                    _filters = null;
                }

                disposedValue = true;
            }
        }
Exemplo n.º 9
0
 public Bullet(Point pos, Point dir, Size size, Pen pen) : base(pos, dir, size, pen)
 {
     MessageJournal.Invoke("Нажата клавиша CTRL");
 }