Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
 private void BtnSelectFile_Click(object sender, EventArgs e)
 {
     SelectFileClick?.Invoke(sender, e);
 }