Beispiel #1
0
        /// <summary>
        /// Handles the postback of the staff member select popup
        /// </summary>
        /// <param name="sender">The sender</param>
        /// <param name="e">The event args</param>
        protected void SetStaffRecipientsFilter_ReloadParent(object sender, StaffMultipleEventArgs e)
        {
            this.SearchByStaffIds = e.StaffIdList.ToList();

            this._Presenter.BindSelectedRecipients(this.SearchByStaffIds);
        }
Beispiel #2
0
        /// <summary>
        /// Saves selected staff members. Raises event in parameter page with results as parameter.
        /// </summary>
        /// <param name="sender">The event sender</param>
        /// <param name="e">The event arguments</param>
        protected void SaveDynamicImageButton_Click(object sender, EventArgs e)
        {
            StaffMultipleEventArgs arguments = new StaffMultipleEventArgs();

            foreach (int staffId in this.SelectedStaffIds)
            {
                arguments.StaffIdList.Add(staffId);
            }

            this.ReloadParent(this, arguments);

            this.ResetModalPopup();
        }