private void SelectToolFileBtn_Click(object sender, RoutedEventArgs e) { string selecteFile = showSelectFileDialog((string)FindResource("filter_tool_file")); if (null == selecteFile) { return; } mToolM.setSelectedToolFile(selecteFile); if (!mToolM.isValidToolFile(selecteFile)) { mToolM.resetSelectedToolFile(); showTipMessage((string)FindResource("selected_file_is_invalid")); return; } }