CloseBalloon() public méthode

public CloseBalloon ( ) : void
Résultat void
        public TrayNotificationBalloon(TrayIcon trayIcon) {
            InitializeComponent();
            _trayIcon = trayIcon;

            var command = ReactiveCommand.Create();
            command.Subscribe(x => _trayIcon.CloseBalloon());
            CloseNotificationCommand = command;

            _closeTimer = new Timer(5000);
            _closeTimer.Elapsed += OnCloseTimerElapsed;
            _closeTimer.Start();
        }
Exemple #2
0
        public TrayNotificationBalloon(TrayIcon trayIcon)
        {
            InitializeComponent();
            _trayIcon = trayIcon;

            var command = ReactiveCommand.Create();

            command.Subscribe(x => _trayIcon.CloseBalloon());
            CloseNotificationCommand = command;

            _closeTimer          = new Timer(5000);
            _closeTimer.Elapsed += OnCloseTimerElapsed;
            _closeTimer.Start();
        }
Exemple #3
0
 void OnCloseTimerElapsed(object sender, ElapsedEventArgs e)
 {
     _trayIcon.CloseBalloon();
 }