/// <summary>
 /// Removes the attachment.
 /// </summary>
 /// <param name="file">The file.</param>
 private void RemoveAttachment(AttachmentViewModel file)
 {
     Attachments.Remove(file);
     FilePaths.Remove(file.FileName);
 }
예제 #2
0
 /// <summary>
 /// Opens the attachment.
 /// </summary>
 /// <param name="file">The file.</param>
 private void OpenAttachment(AttachmentViewModel file)
 {
     if (!_board.OpenAttachment(_issue.Id, file.FileName))
     {
         MessageBox.Show("Can not open file", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }