Пример #1
0
        private void PhotoUploadBtn_Click(object sender, EventArgs e)
        {
            UploadPhotoForm uploadPhoto = new UploadPhotoForm(this.photoUrl);

            uploadPhoto.ShowDialog();
            this.photoUrl = uploadPhoto.url;
            this.PhotoBox.Load(this.photoUrl);
        }
Пример #2
0
        private void PhotoUploadBtn_Click(object sender, EventArgs e)
        {
            UploadPhotoForm uploadPhoto = new UploadPhotoForm(url);

            uploadPhoto.ShowDialog();
            url = uploadPhoto.url;
            try
            {
                this.PhotoBox.Load(url);
            }
            catch (Exception ex) { }
        }