Advertisement
Guest User

Untitled

a guest
Mar 6th, 2017
733
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.25 KB | None | 0 0
  1. private void InitializeComponent()
  2.         {
  3.             this.tabMRS = this.Factory.CreateRibbonTab();
  4.             this.mrsRibbonGroup = this.Factory.CreateRibbonGroup();
  5.             this.chooseMeetingRoomsButton = this.Factory.CreateRibbonButton();
  6.             this.tabMRS.SuspendLayout();
  7.             this.mrsRibbonGroup.SuspendLayout();
  8.             this.SuspendLayout();
  9.             //
  10.             // tabMRS
  11.             //
  12.             this.tabMRS.ControlId.ControlIdType = Microsoft.Office.Tools.Ribbon.RibbonControlIdType.Office;
  13.             this.tabMRS.ControlId.OfficeId = "TabAppointment";
  14.             this.tabMRS.Groups.Add(this.mrsRibbonGroup);
  15.             this.tabMRS.Label = "TabAppointment";
  16.             this.tabMRS.Name = "tabMRS";
  17.             //
  18.             // mrsRibbonGroup
  19.             //
  20.             this.mrsRibbonGroup.Items.Add(this.chooseMeetingRoomsButton);
  21.             this.mrsRibbonGroup.Label = "Meeting Rooms";
  22.             this.mrsRibbonGroup.Name = "mrsRibbonGroup";
  23.             //
  24.             // chooseMeetingRoomsButton
  25.             //
  26.             this.chooseMeetingRoomsButton.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
  27.             this.chooseMeetingRoomsButton.Image = Properties.Resources.RibbonIcon;
  28.             this.chooseMeetingRoomsButton.Label = "Search for meeting rooms";
  29.             this.chooseMeetingRoomsButton.Name = "chooseMeetingRoomsButton";
  30.             this.chooseMeetingRoomsButton.ScreenTip = "Select meeting rooms for your meeting";
  31.             this.chooseMeetingRoomsButton.ShowImage = true;
  32.             this.chooseMeetingRoomsButton.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.ChooseMeetingRoomsButton_Click);
  33.             //
  34.             // MRSRibbon
  35.             //
  36.             this.Name = "MRSRibbon";
  37.             this.RibbonType = "Microsoft.Outlook.Explorer";
  38.             this.Tabs.Add(this.tabMRS);
  39.             this.Load += new Microsoft.Office.Tools.Ribbon.RibbonUIEventHandler(this.MRSRibbon_Load);
  40.             this.tabMRS.ResumeLayout(false);
  41.             this.tabMRS.PerformLayout();
  42.             this.mrsRibbonGroup.ResumeLayout(false);
  43.             this.mrsRibbonGroup.PerformLayout();
  44.             this.ResumeLayout(false);
  45.  
  46.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement