public bool GetEnabled(Office.IRibbonControl control) { if (IsAnyWindowOpen()) { ActionFramework.Common.Interface.EnabledHandler enabledHandler = EnabledHandlerFactory.CreateInstance(control.Id, control.Tag); return(enabledHandler.Get(control.Id)); } else { return(false); } }
public bool GetEnabled(Office.IRibbonControl control) { var enabledHandler = EnabledHandlerFactory.CreateInstance(control.Id, control.Tag); return(enabledHandler.Get(control.Id)); }