private void DownloadFile1_Click(object sender, EventArgs e) { if (OpenFileDialog1.ShowDialog() == DialogResult.OK) { WorkWithFiles file = new WorkWithFiles(OpenFileDialog1.FileName); TextBox1.Lines = file.Text; OpenFileDialog1.Dispose(); } }
private void DownloadFile1_Click(object sender, EventArgs e) { if (OpenFileDialog1.ShowDialog() == DialogResult.OK) { WorkWithFiles file = new WorkWithFiles(OpenFileDialog1.FileName); TextBox1.Lines = file.Text; OpenFileDialog1.Dispose(); } }