Пример #1
0
        private void Save()
        {
            if (pbPhoto.Image != null)
            {
                using (posb.Config con = new posb.Config())
                {
                    con.SaveImage(this.EntityName, this.Id.Value, this.ImageToByte(pbPhoto.Image));
                }

                this.Result(true, "", pbPhoto.Image);

                this.Close();
            }
            else
            {
                this.Alert("Seleccione una imagen");
            }
        }