Exemplo n.º 1
0
        private void CreateRibbonPanel(UIControlledApplication application)
        {
            RibbonPanel    ribbonPanel    = application.CreateRibbonPanel(RibbonPanelName);
            PushButtonData pushButtonData = new PushButtonData(
                "Экспорт в Excel",
                "Экспорт в Excel",
                AddInPath,
                "ExcelSpecificationGOST.ExcelSpecificationGOSTCommand");

            pushButtonData.SetContextualHelp(new ContextualHelp(ContextualHelpType.Url, @"https://github.com/DenisDavydov1/RevitToGOST/wiki"));
            PushButton pushButton = ribbonPanel.AddItem(pushButtonData) as PushButton;

            pushButton.ToolTip    = "Экспортировать модель в спецификацию по ГОСТ в Excel";
            pushButton.LargeImage = Bitmaps.Convert(Properties.Resources.ButtonIcon);
        }
 public LoadingWindow()
 {
     InitializeComponent();
     LoadingScreenImage.Source = Bitmaps.Convert(Properties.Resources.loading_screen_image);
 }