Esempio n. 1
0
    /// <summary>
    /// Editing the participants
    /// </summary>
    /// <param name="commandContext">Command Context</param>
    /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
    public async Task EditParticipants(CommandContextContainer commandContext)
    {
        var dialogHandler = new DialogHandler(commandContext);

        await using (dialogHandler.ConfigureAwait(false))
        {
            var appointmentId = await dialogHandler.Run <CalendarAppointmentSelectionDialogElement, long>()
                                .ConfigureAwait(false);

            bool repeat;

            var participants = new AppointmentParticipantsContainer
            {
                AppointmentId = appointmentId
            };

            do
            {
                repeat = await dialogHandler.Run <CalendarParticipantsEditDialogElement, bool>(new CalendarParticipantsEditDialogElement(_localizationService, _userManagementService, participants))
                         .ConfigureAwait(false);
            }while (repeat);
        }
    }
Esempio n. 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="localizationService">Localization service</param>
 /// <param name="userManagementService">User management</param>
 /// <param name="data">Data</param>
 public CalendarParticipantsEditDialogElement(LocalizationService localizationService, UserManagementService userManagementService, AppointmentParticipantsContainer data)
     : base(localizationService)
 {
     _data = data;
     _userManagementService = userManagementService;
 }