Пример #1
0
 public MainWindow()
 {
     InitializeComponent();
     _progressNotifyIcon              = new ProgressNotifyIcon();
     _progressNotifyIcon.DoubleClick += HandleOnNotifyIconDoubleClicked;
     _eventAggregator.Subscribe <WorkLoggedEventArgs>(x =>
     {
         _numberOfNotUploadedWorklogs++;
         RefreshNotUploadedWorklogsStatus();
     });
     _eventAggregator.Subscribe <WorklogUploadedEventArgs>(x =>
     {
         _numberOfNotUploadedWorklogs--;
         RefreshNotUploadedWorklogsStatus();
     });
 }
Пример #2
0
 public MainWindow()
 {
    InitializeComponent();
    _progressNotifyIcon = new ProgressNotifyIcon();
    _progressNotifyIcon.DoubleClick += HandleOnNotifyIconDoubleClicked;
    _eventAggregator.Subscribe<WorkLoggedEventArgs>(x =>
    {
       _numberOfNotUploadedWorklogs++;
       RefreshNotUploadedWorklogsStatus(); 
    });
    _eventAggregator.Subscribe<WorklogUploadedEventArgs>(x =>
    {
       _numberOfNotUploadedWorklogs--;
       RefreshNotUploadedWorklogsStatus();
    });
 }