private void button_recName_Click(object sender, RoutedEventArgs e) { if (comboBox_recNamePlugIn.SelectedItem != null) { string name = comboBox_recNamePlugIn.SelectedItem as string; if (String.Compare(name, "なし", true) != 0) { string filePath = SettingPath.ModulePath + "\\RecName\\" + name; RecNamePluginClass plugin = new RecNamePluginClass(); HwndSource hwnd = (HwndSource)HwndSource.FromVisual(this); plugin.Setting(filePath, hwnd.Handle); } } }
private void button_recName_Click(object sender, RoutedEventArgs e) { if (comboBox_recNamePlugIn.SelectedItem != null) { string name = comboBox_recNamePlugIn.SelectedItem as string; if (String.Compare(name, "なし", true) != 0) { string filePath = SettingPath.ModulePath + "\\RecName\\" + name; RecNamePluginClass plugin = new RecNamePluginClass(); HwndSource hwnd = (HwndSource)HwndSource.FromVisual(this); plugin.Setting(filePath, hwnd.Handle); } } }