Exemple #1
0
 public Result OnStartup(UIControlledApplication a)
 {
     try
     {
         var panel = a.CreateRibbonPanel("ПИК");
         Icons.CreateIcons(panel);
         return(Result.Succeeded);
     }
     catch
     {
         return(Result.Failed);
     }
 }
Exemple #2
0
        public Result OnStartup(UIControlledApplication a)
        {
            try
            {
                //Define localisation values
                Tools.GetLocalisationValues();

                //Create the panel for BIM42 Tools
                RibbonPanel Bim42Panel = a.CreateRibbonPanel(Tools.LangResMan.GetString("roomFinishes_ribbon_panel_name", Tools.Cult));

                //Create icons in this panel
                Icons.CreateIcons(Bim42Panel);

                return(Result.Succeeded);
            }
            catch
            {
                // Return Failure
                return(Result.Failed);
            }
        }