Example #1
0
 public void ApplyChange(DirectoryInfo destination)
 {
     Guard.NotNull(() => destination, destination);
     DestinationFile = new FileInfo(Path.Combine(destination.FullName, Class, File.Name));
     MoveRequest?.Invoke(this, EventArgs.Empty);
 }
Example #2
0
 /// <summary>
 /// Raises the MoveRequest event.
 /// </summary>
 /// <param name="e">A <see cref="PlayerMoveEventArgs"/> containg data event.</param>
 protected virtual void OnMoveRequest(PlayerMoveEventArgs e)
 {
     MoveRequest?.Invoke(this, e);
 }