Beispiel #1
0
        ///<summary>
        /// Registers an expected or unexpected handler for the given form caption.
        ///</summary>
        ///<param name="name">The caption of the form to handle.</param>
        ///<param name="handler">The handler.</param>
        ///<param name="expectedCount">number of times this handler is expected</param>
        internal Handler Add(string name, ModalFormActivatedHwnd handler, int expectedCount)
        {
            Handler handlerObject = new Handler(handler, expectedCount, name);

            handlers[name] = handlerObject;
            return(handlerObject);
        }
Beispiel #2
0
 internal void Add(string name, ModalFormActivatedHwnd handler, bool expected)
 {
     BeginListening();             //can be called multiple times.
     handlers[name] = new Handler(handler, expected);
 }
 ///<summary>
 /// Registers an expected or unexpected handler for the given form caption.
 ///</summary>
 ///<param name="name">The caption of the form to handle.</param>
 ///<param name="handler">The handler.</param>
 ///<param name="expectedCount">number of times this handler is expected</param>
 internal Handler Add(string name, ModalFormActivatedHwnd handler, int expectedCount)
 {
     Handler handlerObject = new Handler(handler, expectedCount, name);
     handlers[name] = handlerObject;
     return handlerObject;
 }
Beispiel #4
0
 ///<summary>
 /// Registers an expected or unexpected handler for the given form caption.
 ///</summary>
 ///<param name="name">The caption of the form to handle.</param>
 ///<param name="handler">The handler.</param>
 ///<param name="expected">True if this handler is expected; false if this handler is not expected.</param>
 internal void Add(string name, ModalFormActivatedHwnd handler, bool expected)
 {
     BeginListening();
     handlers[name] = new Handler(handler, expected);
 }
Beispiel #5
0
 ///<summary>
 /// Registers an expected or unexpected handler for the given form caption.
 ///</summary>
 ///<param name="name">The caption of the form to handle.</param>
 ///<param name="handler">The handler.</param>
 ///<param name="expected">True if this handler is expected; false if this handler is not expected.</param>
 internal void Add(string name, ModalFormActivatedHwnd handler, bool expected)
 {
     BeginListening();
     handlers[name] = new Handler(handler, expected);
 }
Beispiel #6
0
		internal void Add(string name, ModalFormActivatedHwnd handler, bool expected)
		{
			BeginListening(); //can be called multiple times.
			handlers[name] = new Handler(handler, expected);
		}