Exemple #1
0
 /// <summary>
 /// Fires an event for this instance.
 /// </summary>
 /// <param name="handler">The event handler to fire.</param>
 /// <param name="args">The arguments to fire the event with.</param>
 private void Fire(EventHandler <RestoreDatabaseTargetEventArgs> handler, RestoreDatabaseTargetEventArgs args)
 {
     if (handler != null)
     {
         handler(this, args);
     }
 }
Exemple #2
0
 /// <summary>
 /// Raises a restore target's TransferStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnRestoreTransferStart(object sender, RestoreDatabaseTargetEventArgs e)
 {
     this.Fire(this.RestoreTransferStart, e);
 }
Exemple #3
0
 /// <summary>
 /// Raises a restore target's TransferProgress event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnRestoreTransferProgress(object sender, RestoreDatabaseTargetEventArgs e)
 {
     this.Fire(this.RestoreTransferProgress, e);
 }
Exemple #4
0
 /// <summary>
 /// Raises a restore target's TransferComplete event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnRestoreTransferComplete(object sender, RestoreDatabaseTargetEventArgs e)
 {
     this.Fire(this.RestoreTransferComplete, e);
 }
Exemple #5
0
 /// <summary>
 /// Raises a restore target's DecompressStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnRestoreDecompressStart(object sender, RestoreDatabaseTargetEventArgs e)
 {
     this.Fire(this.RestoreDecompressStart, e);
 }
Exemple #6
0
 /// <summary>
 /// Raises a restore target's TransferStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnRestoreTransferStart(object sender, RestoreDatabaseTargetEventArgs e)
 {
     this.Fire(this.RestoreTransferStart, e);
 }
Exemple #7
0
 /// <summary>
 /// Raises a restore target's TransferProgress event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnRestoreTransferProgress(object sender, RestoreDatabaseTargetEventArgs e)
 {
     this.Fire(this.RestoreTransferProgress, e);
 }
Exemple #8
0
 /// <summary>
 /// Raises a restore target's TransferComplete event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnRestoreTransferComplete(object sender, RestoreDatabaseTargetEventArgs e)
 {
     this.Fire(this.RestoreTransferComplete, e);
 }
Exemple #9
0
 /// <summary>
 /// Raises a restore target's DecompressStart event.
 /// </summary>
 /// <param name="sender">The event sender.</param>
 /// <param name="e">The event arguments.</param>
 private void OnRestoreDecompressStart(object sender, RestoreDatabaseTargetEventArgs e)
 {
     this.Fire(this.RestoreDecompressStart, e);
 }
Exemple #10
0
 /// <summary>
 /// Fires an event for this instance.
 /// </summary>
 /// <param name="handler">The event handler to fire.</param>
 /// <param name="args">The arguments to fire the event with.</param>
 private void Fire(EventHandler<RestoreDatabaseTargetEventArgs> handler, RestoreDatabaseTargetEventArgs args)
 {
     if (handler != null)
     {
         handler(this, args);
     }
 }