PowerArgs.Cli.NotificationButton.NotificationButton_Activated C# (CSharp) Method

NotificationButton_Activated() private method

private NotificationButton_Activated ( ) : void
return void
        private void NotificationButton_Activated()
        {
            var app = Application as ConsolePageApp;
            if (app == null) throw new NotSupportedException("NotificationButton can only be used in a ConsolePageApp");
            app.PageStack.CurrentPage.ShowProgressOperationsDialog();
        }