コード例 #1
0
 /// <summary>
 /// Handler for the Load event of the team ribbon
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">The event arguments.</param>
 private void TeamRibbon_Load(object sender, RibbonUIEventArgs e)
 {
     this.Logger.Log(TraceEventType.Information, "Loading icons");
     try
     {
         this.buttonImport.Image                     = IconManager.GetImage("NewList.png");
         this.buttonImport.ShowImage                 = true;
         this.buttonRefresh.Image                    = IconManager.GetImage("Refresh.png");
         this.buttonRefresh.ShowImage                = true;
         this.toggleButtonShowLayoutEditor.Image     = IconManager.GetImage("LayoutEditor.png");
         this.toggleButtonShowLayoutEditor.ShowImage = true;
     }
     catch (Win32Exception)
     {
         // Ignore problems loading the icons.
     }
 }
 /// <summary>
 /// Handles the Load event.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">The event arguments.</param>
 private void WorkItemQueryAndLayoutPickerWizardView_Load(object sender, EventArgs e)
 {
     this.pictureBoxTitleIcon.Image = IconManager.GetImage("NewList.png");
 }