コード例 #1
0
ファイル: ProductSkuInfo.cs プロジェクト: 84646310/GS
 public ProductSkuInfo(ProductId aProductId, SpecificationId aSpecificationId, Money aUnitPrice, PictureId aPictureId)
 {
     ProductId       = aProductId;
     SpecificationId = aSpecificationId;
     UnitPrice       = aUnitPrice;
     PictureId       = aPictureId;
 }
コード例 #2
0
ファイル: BeanTakePhotoRule.cs プロジェクト: linxscc/LoveGame
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Player != 0)
            {
                hash ^= Player.GetHashCode();
            }
            if (PictureId != 0)
            {
                hash ^= PictureId.GetHashCode();
            }
            if (Coordinate.Length != 0)
            {
                hash ^= Coordinate.GetHashCode();
            }
            if (Gain != 0D)
            {
                hash ^= Gain.GetHashCode();
            }
            if (IsEvo != 0)
            {
                hash ^= IsEvo.GetHashCode();
            }
            if (Sharpness != 0D)
            {
                hash ^= Sharpness.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
ファイル: Picture.cs プロジェクト: 84646310/GS
 public Picture(int aId, PictureId aPictureId, PictureUseType aUseType) : base(aId)
 {
     if (aId <= 0)
     {
         throw new ArgumentException("Id不能小于或等于0");
     }
     if (aPictureId == null)
     {
         throw new ArgumentException("图片Id不能为空");
     }
     PictureId = aPictureId;
     UseType   = aUseType;
 }
コード例 #4
0
ファイル: FrmPictures.cs プロジェクト: mtifa/RollingAlong
        private void btnDelete_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Do you want to DELETE a image of bicycle?", "Confirm", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                var restClient  = new RestClient("http://marichely.me:8099/");
                var restRequest = new RestRequest("bicycle/picture/id", Method.DELETE)
                {
                    RequestFormat = DataFormat.Json
                };
                restRequest.AddHeader("UserApiKey", User.ApiKey);
                restRequest.AddHeader("imageid", PictureId.ToString());

                IRestResponse restResponse = restClient.Execute(restRequest);
                if ((int)restResponse.StatusCode == 200)
                {
                    MessageBox.Show("You 're sucessfully deleted image!");
                }
            }
        }
コード例 #5
0
ファイル: Macroblock.cs プロジェクト: sarandogou/thialgou
 public int CompareTo(Macroblock other)
 {
     if (other == null)
     {
         throw new ArgumentNullException("other");
     }
     if (LayerId != other.LayerId)
     {
         return(LayerId.CompareTo(other.LayerId));
     }
     if (PictureId != other.PictureId)
     {
         return(PictureId.CompareTo(other.PictureId));
     }
     if (SliceId != other.SliceId)
     {
         return(SliceId.CompareTo(other.SliceId));
     }
     return(Mb.CompareTo(other.Mb));
 }
コード例 #6
0
        private PictureBox getPictureBoxFromId(PictureId id)
        {
            switch (id)
            {
            case PictureId.Original:
                return(OriginalImage);

            case PictureId.Threshold:
                return(ThresholdImage);

            case PictureId.Masked:
                return(MaskedImage);

            case PictureId.Red:
                return(RedImage);

            default:
                return(null);
            }
        }
コード例 #7
0
ファイル: PictureService.cs プロジェクト: outscope/nop-master
 public int CompareTo(HashItem other)
 {
     return(other == null ? -1 : PictureId.CompareTo(other.PictureId));
 }
コード例 #8
0
ファイル: ShowPictureEvent.cs プロジェクト: csinkers/ualbion
 public ShowPictureEvent(PictureId pictureId, int x, int y)
 {
     PictureId = pictureId; X = x; Y = y;
 }
コード例 #9
0
 public ShowPicEvent(PictureId picId, int?x, int?y)
 {
     PicId = picId; X = x; Y = y;
 }
コード例 #10
0
ファイル: Picture.cs プロジェクト: 84646310/GS
 public void Update(PictureId aPictureId, PictureUseType aUseType)
 {
     PictureId = aPictureId;
     UseType   = aUseType;
 }
コード例 #11
0
        public void displayImage(ref Image <Bgr, byte> image, PictureId target)
        {
            PictureBox box = getPictureBoxFromId(target);

            box.Image = image.Resize(box.Size.Width, box.Size.Height, Emgu.CV.CvEnum.Inter.Linear).ToBitmap();
        }