private button_bat_Click ( object sender, |
||
sender | object | |
e | ||
return | void |
private void button_bat_Click(object sender, RoutedEventArgs e)
{
Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
dlg.DefaultExt = ".bat";
dlg.Filter = "bat Files (.bat)|*.bat;|all Files(*.*)|*.*";
Nullable<bool> result = dlg.ShowDialog();
if (result == true)
{
textBox_bat.Text = dlg.FileName;
}
}