private void button_FilePath_Click(object sender, EventArgs e) { string filePath = FileControl.getFilePathFromDialog(); if (filePath != null) { textBox_FilePath.Text = filePath; } }
private void button_GetText_Click(object sender, EventArgs e) { string filePath = FileControl.getFilePathFromDialog(); picturBox.Image = new Bitmap(filePath); }