private void buttonWrite_Click(object sender, EventArgs e) { // кнопка выбора файла чтения string s = MyDialogFile.SelectTextFileAndReturnPath(); if (s.Length > 0) { textBoxWrite.Text = s; } }
private void buttonPath_Click(object sender, EventArgs e) { textBoxPath.Text = MyDialogFile.SelectTextFileAndReturnPath(); }