Пример #1
0
 private void button_write_Click(object sender, RoutedEventArgs e)
 {
     if (comboBox_writePlugIn.SelectedItem != null)
     {
         string name     = comboBox_writePlugIn.SelectedItem as string;
         string filePath = System.IO.Path.Combine(SettingPath.ModulePath, "Write\\" + name);
         CommonUtil.ShowPlugInSetting(filePath, ((HwndSource)PresentationSource.FromVisual(this)).Handle);
     }
 }
Пример #2
0
        private void button_recName_Click(object sender, RoutedEventArgs e)
        {
            if (comboBox_recNamePlugIn.SelectedItem != null)
            {
                string name = comboBox_recNamePlugIn.SelectedItem as string;
                if (name != "なし")
                {
                    string filePath = System.IO.Path.Combine(SettingPath.ModulePath, "RecName\\" + name);

                    HwndSource hwnd = (HwndSource)HwndSource.FromVisual(this);

                    CommonUtil.ShowPlugInSetting(filePath, hwnd.Handle);
                }
            }
        }