コード例 #1
0
        private void DoSave()
        {
            if (!ValidateItem())
            {
                return;
            }

            var collectedItem = new Item {
                ItemName    = ItemName,
                Latitude    = Latitude,
                Longitude   = Longitude,
                ItemCreated = DateTime.Now,
                Description = Description,
                ImagePath   = _imageStore.SaveImageToFile(PictureBytes)
            };

            _itemService.Add(collectedItem);
            Close(this);
        }