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

NotificationButton() public method

public NotificationButton ( ProgressOperationsManager manager ) : System
manager ProgressOperationsManager
return System
        public NotificationButton(ProgressOperationsManager manager)
        {
            this.manager = manager;

            launcher = Add(new Button());
            launcher.Shortcut = new KeyboardShortcut(ConsoleKey.N, ConsoleModifiers.Alt);
            launcher.Pressed.SubscribeForLifetime(NotificationButton_Activated, LifetimeManager);
            launcherFg = launcher.Foreground;
            spinner = Add(new Spinner() { IsVisible = false, IsSpinning = false, CanFocus = false, X = 1, Foreground = ConsoleColor.Cyan });
            Manager_ProgressOperationsChanged();
            manager.ProgressOperationsChanged += Manager_ProgressOperationsChanged;
            this.AddedToVisualTree.SubscribeForLifetime(OnAddedToVisualTree, this.LifetimeManager);
        }