private static PushButtonData OnIdlingCommand(string ribbonAndPanelName) { var buttonName = "OnIdlingCommand"; var buttonTitle = "Start/Stop"; return(new PushButtonData(ribbonAndPanelName + buttonName, buttonTitle, AssemblyPath, "SelectionMonitorCompilationCore.Tools.MonitorOnIdlingCommand") { LargeImage = RibbonUtilities.GetBitmapFrame(ImagePath + "startstop_32.png"), Image = RibbonUtilities.GetBitmapFrame(ImagePath + "startstop_16.png") }); }
private static PushButtonData FairFiftyNineCommand() { var buttonName = "FairButtonItem"; var buttonTitle = "Fair Method"; return(new PushButtonData(buttonName, buttonTitle, AssemblyPath, "SelectionMonitorCompilationCore.Tools.MonitorFairCommand") { LargeImage = RibbonUtilities.GetBitmapFrame(ImagePath + "startstop_32.png"), Image = RibbonUtilities.GetBitmapFrame(ImagePath + "startstop_16.png"), AvailabilityClassName = "SelectionMonitorCompilationCore.Tools.Enablers.MonitorFairCommandEnabler" }); }