ACAT.Lib.Extension.AppAgents.WindowsExplorer.WindowsExplorerAgentBase.CheckWidgetEnabled C# (CSharp) Метод

CheckWidgetEnabled() публичный Метод

Invoked to set the 'enabled' state of a widget. This will depend on the current context.
public CheckWidgetEnabled ( ACAT.Lib.Core.AgentManagement.CheckEnabledArgs arg ) : void
arg ACAT.Lib.Core.AgentManagement.CheckEnabledArgs contains info about the widget
Результат void
        public override void CheckWidgetEnabled(CheckEnabledArgs arg)
        {
            if (arg.Widget.SubClass == "WindowsStartMenu" &&
                (_osVersion == Windows.WindowsVersion.Win8 || _osVersion == Windows.WindowsVersion.Win10))
            {
                arg.Enabled = false;
                arg.Handled = true;
            }
            else
            {
                checkWidgetEnabled(_supportedFeatures, arg);
            }
        }