Exemple #1
0
        private void pictureBoxUser_Click(object sender, EventArgs e)
        {
            var image = ImageMethod.GetDirectoryImage();

            this.pictureBoxUser.Image = image;
            _userStruct.binary        = (image != null) ? ImageMethod.ImageToBinary(image) : null;
        }
Exemple #2
0
        private void pictureBoxUser_Click(object sender, EventArgs e)
        {
            try
            {
                var image = ImageMethod.GetDirectoryImage();

                _userStruct.binary = (image != null) ? ImageMethod.ImageToBinary(image) : null;

                pictureBoxUser.Image = image;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }