private void AddRibbonItems(RibbonPanel panel) { string location = Assembly.GetExecutingAssembly().Location; string str = location.Remove(location.Length - "Contents\\LODParameter.dll".Length); string str2 = str + "Resources\\Icons\\"; PushButtonData val = new PushButtonData("CreateLODparameter", "Create\nParameters", location, "LODParameter.CreateLODParameter"); val.set_AvailabilityClassName("LODParameter.CreateParametersButtonAvailability"); val.SetContextualHelp(new ContextualHelp(2, "http://www.ikerd.com/lodmanager/user-guide")); PushButton val2 = panel.AddItem(val) as PushButton; val2.set_ToolTip("Create LOD parameters for this document"); val2.set_LongDescription("Adds Current and Target LOD fields and MEA to each element in document.\nYou must run this command before using other LOD-related commands"); val2.set_LargeImage((ImageSource) new BitmapImage(new Uri(str2 + "LODCREATEICON.png"))); PushButtonData val3 = new PushButtonData("SetLOD", "Set\nLOD", location, "LODParameter.SetLODofSelection"); val3.set_AvailabilityClassName("LODParameter.ParameterRequiredButtonAvailability"); val3.SetContextualHelp(new ContextualHelp(2, "http://www.ikerd.com/lodmanager/user-guide")); PushButton val4 = panel.AddItem(val3) as PushButton; val4.set_ToolTip("Set LOD of Selection"); val4.set_LongDescription("Sets the LOD of all selected items.\nSelect a detail view to set the LOD of all items in that view."); val4.set_LargeImage((ImageSource) new BitmapImage(new Uri(str2 + "SETLODICON.png"))); PushButtonData val5 = new PushButtonData("LODfilters", "LOD\nFilters", location, "LODParameter.FilterByLOD"); val5.set_AvailabilityClassName("LODParameter.ParameterRequiredButtonAvailability"); val5.SetContextualHelp(new ContextualHelp(2, "http://www.ikerd.com/lodmanager/user-guide")); PushButton val6 = panel.AddItem(val5) as PushButton; val6.set_ToolTip("Apply graphical LOD filters"); val6.set_LongDescription("Applys visibility graphics filters such as coloring,transparency, and visibility to items based on their LOD."); val6.set_LargeImage((ImageSource) new BitmapImage(new Uri(str2 + "FILTERLODICON.png"))); }