コード例 #1
0
        private void RaiseUpdateEvent(ProductUpdateAvailableEventArgs args)
        {
            EventHandler <ProductUpdateAvailableEventArgs> handler = UpdateAvailable;

            if (handler != null)
            {
                handler(this, args);
            }
        }
コード例 #2
0
 private void RaiseUpdateEvent(ProductUpdateAvailableEventArgs args)
 {
     UpdateAvailable(this, args);
 }
コード例 #3
0
 private void OnUpdateAvailable(object sender, ProductUpdateAvailableEventArgs e)
 {
     // this event handler will be invoked on background thread. Has to use Dispatcher to show update bar.
     Dispatcher.BeginInvoke(new Action<Version, Version>(ShowUpdateBar), e.CurrentVersion, e.NewVersion);
 }
コード例 #4
0
 private void OnUpdateAvailable(object sender, ProductUpdateAvailableEventArgs e)
 {
     // this event handler will be invoked on background thread. Has to use Dispatcher to show update bar.
     Dispatcher.BeginInvoke(new Action <Version, Version>(ShowUpdateBar), e.CurrentVersion, e.NewVersion);
 }
コード例 #5
0
 private void RaiseUpdateEvent(ProductUpdateAvailableEventArgs args)
 {
     UpdateAvailable(this, args);
 }
コード例 #6
0
 private void RaiseUpdateEvent(ProductUpdateAvailableEventArgs args)
 {
     EventHandler<ProductUpdateAvailableEventArgs> handler = UpdateAvailable;
     if (handler != null) {
         handler(this, args);
     }
 }