/// <summary>
 /// Saves the current state to the specified profile name.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">An <see cref="SaveDialogEventArgs{T}"/> that contains the event data.</param>
 private void SaveNewProfileSuccess(object sender, SaveDialogEventArgs <string> e)
 {
     if (e != null && e.ActionType.Equals(SaveDialogActionType.Confirm) && string.IsNullOrEmpty(e.ReturnValue) == false)
     {
         this.ViewModel.SaveNewProfile(e.ReturnValue);
     }
 }
 /// <summary>
 /// Saves the current state to the specified profile name.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">An <see cref="SaveDialogEventArgs{T}"/> that contains the event data.</param>
 private void SaveNewProfileSuccess(object sender, SaveDialogEventArgs<string> e)
 {
     if (e != null && e.ActionType.Equals(SaveDialogActionType.Confirm) && string.IsNullOrEmpty(e.ReturnValue) == false)
     {
         this.ViewModel.SaveNewProfile(e.ReturnValue);
     }
 }