Exemple #1
0
 /// <summary>
 /// ボイスロイドをのexeファイルの場所を探す。
 /// </summary>
 public static void SearchVoiceroid()
 {
     foreach (var process in factory.Processes)
     {
         string name = Enum.GetName(typeof(VoiceroidId), process.Id);
         if (!string.IsNullOrEmpty(process.ExecutablePath) && string.IsNullOrEmpty(DCM.GetCharaExe(name)))
         {
             DCM.SetCharaExe(name, process.ExecutablePath);
         }
     }
 }
Exemple #2
0
        private void Button_SelectExe(object sender, RoutedEventArgs e)
        {
            string name = (sender as Button).DataContext.ToString();
            var    dlg  = new MSAPI::Dialogs.CommonOpenFileDialog();

            dlg.Title            = "exeファイルの場所を選択してください";
            dlg.InitialDirectory = DCM.GetCharaExe(name);

            if (dlg.ShowDialog() == MSAPI::Dialogs.CommonFileDialogResult.Ok)
            {
                DCM.SetCharaExe(name, dlg.FileName);
            }
        }