Ejemplo n.º 1
0
 public void AddRibbonButton(string path, RibbonButtonMapping buttonMapping)
 {
     buttonMapping.SetUiBuilder(this);
     AddControl(path, new UiMappingItem {
         Control = buttonMapping
     });
 }
 private static void SketchButtonSetup(UiBuilder uiBuilder, SketchButton sketchButton, string pointPath,
                                       RibbonButtonMapping pointToolButton)
 {
     uiBuilder.AddRibbonButton(pointPath, pointToolButton);
     sketchButton.SketchUi(pointToolButton);
 }