Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EventListener"/> class.
        /// </summary>
        /// <param name="form">The form.</param>
        /// <param name="subordinates">Other objects that contain.</param>
        public EventListener(B1Session session, IFormInstance form, params object[] subordinates)
        {
            var delegates = subordinates ?? new object[0];

            listeners = new List <IEventListener>()
            {
                session.CreateFormMenuEventListener(form),
                session.CreateRightClickEventListener(form),
                session.CreateFormItemEventListener(form, delegates),
                session.CreateFormDataEventListener(form),
                session.CreateLayoutKeyEventListener(form)
            };
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventListener"/> class.
 /// </summary>
 /// <param name="form">The form.</param>
 public EventListener(B1Session session, IFormInstance form) : this(session, form, null)
 {
 }