ACAT.Extensions.Default.FunctionalAgents.VolumeSettings.VolumeSettingsScanner.CheckWidgetEnabled C# (CSharp) Method

CheckWidgetEnabled() public method

Invoked to check if a scanner button should be enabled. Uses context to determine the 'enabled' state.
public CheckWidgetEnabled ( CheckEnabledArgs arg ) : bool
arg CheckEnabledArgs info about the scanner button
return bool
        public bool CheckWidgetEnabled(CheckEnabledArgs arg)
        {
            switch (arg.Widget.SubClass)
            {
                default:
                    arg.Enabled = true;
                    arg.Handled = true;
                    break;
            }

            return true;
        }

Usage Example

Beispiel #1
0
 /// <summary>
 /// Invoked to check if a scanner button should be enabled.  Uses context
 /// to determine the 'enabled' state.
 /// </summary>
 /// <param name="arg">info about the scanner button</param>
 public override void CheckWidgetEnabled(CheckEnabledArgs arg)
 {
     _volumeSettingsScanner.CheckWidgetEnabled(arg);
 }