private void BtnSelect_Click(object sender, EventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.Filter = "Text file*|*.txt|All files|*.*"; if (dlg.ShowDialog() == DialogResult.OK) { tbFilePath.Text = dlg.FileName; SelectFileClick?.Invoke(this, EventArgs.Empty); } }
private void BtnSelectFile_Click(object sender, EventArgs e) { SelectFileClick?.Invoke(sender, e); }