Example #1
0
 private void AddButton(
     Assembly asmbly,
     string bitMapName,
     string caption,
     string description,
     string toolTipText)
 {
     try
     {
         CommandBarButton = CommandBarHelper.AddButton(
             CommandBarButton,
             CommandBar,
             Name,
             asmbly,
             bitMapName,
             caption,
             description,
             toolTipText,
             EventHandler);
     }
     catch (Exception ex)
     {
         // TODO: Add Logging
         MessageBox.Show(ex.ToString());
         throw ex;
     }
 }
Example #2
0
 private void AddButton(
     string caption,
     string description,
     string toolTipText)
 {
     CommandBarButton = CommandBarHelper.AddButton(
         CommandBarButton,
         CommandBar,
         Name,
         caption,
         description,
         toolTipText,
         EventHandler);
 }