Exemplo n.º 1
0
        public override void RenderToolbar(TextWriter writer)
        {
            Toolbar            toolbar            = new Toolbar(writer, true);
            MeetingMessageType meetingMessageType = this.meetingMessageType;

            if (meetingMessageType > MeetingMessageType.FullUpdate)
            {
                if (meetingMessageType != MeetingMessageType.InformationalUpdate)
                {
                    if (meetingMessageType == MeetingMessageType.Outdated)
                    {
                        toolbar.RenderStartForSubToolbar();
                        toolbar.RenderButton(ToolbarButtons.MeetingOutOfDate);
                        toolbar.RenderDivider();
                        toolbar.RenderButton(ToolbarButtons.ShowCalendar);
                        toolbar.RenderFill();
                        toolbar.RenderEndForSubToolbar();
                        return;
                    }
                    if (meetingMessageType != MeetingMessageType.PrincipalWantsCopy)
                    {
                        return;
                    }
                }
                toolbar.RenderStartForSubToolbar();
                toolbar.RenderButton(ToolbarButtons.MeetingNoResponseRequired);
                toolbar.RenderDivider();
                toolbar.RenderButton(ToolbarButtons.ShowCalendar);
                toolbar.RenderFill();
                toolbar.RenderEndForSubToolbar();
                return;
            }
            if (meetingMessageType != MeetingMessageType.NewMeetingRequest && meetingMessageType != MeetingMessageType.FullUpdate)
            {
                return;
            }
            toolbar.RenderStartForSubToolbar();
            toolbar.RenderButton(ToolbarButtons.MeetingAccept);
            toolbar.RenderDivider();
            toolbar.RenderButton(ToolbarButtons.MeetingTentative);
            toolbar.RenderDivider();
            toolbar.RenderButton(ToolbarButtons.MeetingDecline);
            toolbar.RenderDivider();
            toolbar.RenderButton(ToolbarButtons.ShowCalendar);
            toolbar.RenderFill();
            toolbar.RenderEndForSubToolbar();
            if (this.meetingRequest.IsResponseRequested)
            {
                MeetingPageWriter.RenderResponseEditTypeSelectToolbar(writer);
                return;
            }
        }
Exemplo n.º 2
0
        // Token: 0x060000E3 RID: 227 RVA: 0x00007A4C File Offset: 0x00005C4C
        public override void RenderToolbar(TextWriter writer)
        {
            Toolbar toolbar = new Toolbar(writer, true);

            toolbar.RenderStartForSubToolbar();
            if (base.CalendarItemBase.IsCancelled)
            {
                toolbar.RenderButton(ToolbarButtons.RemoveFromCalendar);
                toolbar.RenderDivider();
                toolbar.RenderButton(ToolbarButtons.ShowCalendar);
                toolbar.RenderFill();
                toolbar.RenderEndForSubToolbar();
                return;
            }
            MeetingMessageType meetingMessageType = this.meetingMessageType;

            if (meetingMessageType != MeetingMessageType.NewMeetingRequest && meetingMessageType != MeetingMessageType.FullUpdate)
            {
                if (meetingMessageType != MeetingMessageType.Outdated)
                {
                    return;
                }
                toolbar.RenderButton(ToolbarButtons.MeetingOutOfDate);
                toolbar.RenderFill();
                toolbar.RenderEndForSubToolbar();
            }
            else
            {
                toolbar.RenderButton(ToolbarButtons.MeetingAccept);
                toolbar.RenderDivider();
                toolbar.RenderButton(ToolbarButtons.MeetingTentative);
                toolbar.RenderDivider();
                toolbar.RenderButton(ToolbarButtons.MeetingDecline);
                toolbar.RenderDivider();
                toolbar.RenderFill();
                toolbar.RenderEndForSubToolbar();
                if (this.IsResponseRequested)
                {
                    MeetingPageWriter.RenderResponseEditTypeSelectToolbar(writer);
                    return;
                }
            }
        }