///<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); }
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; }
///<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); }
///<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); }
internal void Add(string name, ModalFormActivatedHwnd handler, bool expected) { BeginListening(); //can be called multiple times. handlers[name] = new Handler(handler, expected); }