예제 #1
0
        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")
            });
        }
예제 #2
0
        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"
            });
        }