AppVeyor.Commands.Base.DynamicCommand.OnBeforeQueryStatus C# (CSharp) Method

OnBeforeQueryStatus() protected method

Called when [before query status].
protected OnBeforeQueryStatus ( object sender, EventArgs e ) : void
sender object The sender.
e System.EventArgs The instance containing the event data.
return void
        protected void OnBeforeQueryStatus(object sender, EventArgs e)
        {
            OleMenuCommand command = sender as OleMenuCommand;

            command.Enabled = command.Supported = CanExecute(command);
        }