예제 #1
0
        private void AttachPhotoPictureBox1_Click(object sender, EventArgs e)
        {
            if (PictureFileDialog.ShowDialog() == DialogResult.OK)
            {
                PreviewPhotoPictureBox.Load(PictureFileDialog.FileName);
                ClearImagePictureBox1.Show();
            }

            PictureFileDialog.FileName = string.Empty;
        }
예제 #2
0
 private void ClearImagePictureBox1_Click(object sender, EventArgs e)
 {
     PreviewPhotoPictureBox.Image = null;
     ClearImagePictureBox1.Hide();
 }
예제 #3
0
 private void CleanPostControls()
 {
     PreviewPhotoPictureBox.Image = null;
     PostTextBox.Clear();
     ClearImagePictureBox1.Hide();
 }