Beispiel #1
0
 public Attachment(string name, AttachmentStatus attachmentStatus)
 {
     Name             = name;
     AttachmentStatus = attachmentStatus;
     // 目前订单附件只有图片
     AttachmentType = AttachmentType.Image;
 }
Beispiel #2
0
		public void Restart()
		{
			Stage = AttachmentStage.Pending;
			CurrentChunk = 0;
			UploadedBytes = 0;
			DeckCloudFileResponse = null;
			DeckVersionResponse = null;
			Status = AttachmentStatus.Pending;
			DownloadLink = null;
		}
Beispiel #3
0
 /// <summary>
 /// 現在のアタッチ状況をメッセージぼっくに表示するメソッド
 /// </summary>
 public void ShowAttachmentStatus()
 {
     MessageBox.Show(String.Format("{0}\n{1}", AttachmentStatus.ToString(), GetAttachmentStatusMessage(AttachmentStatus)));
 }
Beispiel #4
0
 public void SetAttachmentStatus(AttachmentStatus type)
 {
     AttachmentStatus = type;
 }
Beispiel #5
0
 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)
 {
 }