public Attachment(string name, AttachmentStatus attachmentStatus) { Name = name; AttachmentStatus = attachmentStatus; // 目前订单附件只有图片 AttachmentType = AttachmentType.Image; }
public void Restart() { Stage = AttachmentStage.Pending; CurrentChunk = 0; UploadedBytes = 0; DeckCloudFileResponse = null; DeckVersionResponse = null; Status = AttachmentStatus.Pending; DownloadLink = null; }
/// <summary> /// 現在のアタッチ状況をメッセージぼっくに表示するメソッド /// </summary> public void ShowAttachmentStatus() { MessageBox.Show(String.Format("{0}\n{1}", AttachmentStatus.ToString(), GetAttachmentStatusMessage(AttachmentStatus))); }
public void SetAttachmentStatus(AttachmentStatus type) { AttachmentStatus = type; }
public void SetAttachmentStatus(AttachmentStatus status) { AttachmentStatus = status; }
/// <summary> /// Initializes a new instance of the <see cref="AttachmentStatusSpecification"/> class. /// </summary> /// <param name="status">The status.</param> public AttachmentStatusSpecification(AttachmentStatus status) : base(x => x.Status == status) { }