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