public static RoutedEventHandler OpenFileNameDialog(TextBox box, bool isNameOnly, string Title = "", string DefaultExt = "", bool checkNWPath = false, string defaultPath = "") { return((sender, e) => CommonManager.GetFileNameByDialog(box, isNameOnly, Title, DefaultExt, checkNWPath, defaultPath)); }
private void button_bat_Click(object sender, RoutedEventArgs e) { CommonManager.GetFileNameByDialog(textBox_bat, false, "", ".bat"); }
private void button_process_open_Click(object sender, RoutedEventArgs e) { CommonManager.GetFileNameByDialog(textBox_process, true, "", ".exe"); }