Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void InitializeComponent()
- {
- this.tabMRS = this.Factory.CreateRibbonTab();
- this.mrsRibbonGroup = this.Factory.CreateRibbonGroup();
- this.chooseMeetingRoomsButton = this.Factory.CreateRibbonButton();
- this.tabMRS.SuspendLayout();
- this.mrsRibbonGroup.SuspendLayout();
- this.SuspendLayout();
- //
- // tabMRS
- //
- this.tabMRS.ControlId.ControlIdType = Microsoft.Office.Tools.Ribbon.RibbonControlIdType.Office;
- this.tabMRS.ControlId.OfficeId = "TabAppointment";
- this.tabMRS.Groups.Add(this.mrsRibbonGroup);
- this.tabMRS.Label = "TabAppointment";
- this.tabMRS.Name = "tabMRS";
- //
- // mrsRibbonGroup
- //
- this.mrsRibbonGroup.Items.Add(this.chooseMeetingRoomsButton);
- this.mrsRibbonGroup.Label = "Meeting Rooms";
- this.mrsRibbonGroup.Name = "mrsRibbonGroup";
- //
- // chooseMeetingRoomsButton
- //
- this.chooseMeetingRoomsButton.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
- this.chooseMeetingRoomsButton.Image = Properties.Resources.RibbonIcon;
- this.chooseMeetingRoomsButton.Label = "Search for meeting rooms";
- this.chooseMeetingRoomsButton.Name = "chooseMeetingRoomsButton";
- this.chooseMeetingRoomsButton.ScreenTip = "Select meeting rooms for your meeting";
- this.chooseMeetingRoomsButton.ShowImage = true;
- this.chooseMeetingRoomsButton.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.ChooseMeetingRoomsButton_Click);
- //
- // MRSRibbon
- //
- this.Name = "MRSRibbon";
- this.RibbonType = "Microsoft.Outlook.Explorer";
- this.Tabs.Add(this.tabMRS);
- this.Load += new Microsoft.Office.Tools.Ribbon.RibbonUIEventHandler(this.MRSRibbon_Load);
- this.tabMRS.ResumeLayout(false);
- this.tabMRS.PerformLayout();
- this.mrsRibbonGroup.ResumeLayout(false);
- this.mrsRibbonGroup.PerformLayout();
- this.ResumeLayout(false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement