/// <summary> /// Run the python script for the HelloWorldPython. /// </summary> private void RunPythonScript() { // Set the python script. string pythongArg = Cfg.Name; // Run the python script. RunFile.RunPython(Cfg.PythonPath, HelloWorldPythonScriptPath, pythongArg); }
/// <summary> /// OrderManager内の指定されたファイルを再生します。 /// </summary> public void PlayFile(FileItem File) { man.SetFile(File); if (man.PlayingIndex > -1) { Initialize(File); RunFile?.Invoke(this, new RunFileEventArgs(File)); } }
/// <summary> /// OrderManagerの現在位置からファイルを再生します。 /// </summary> public void PlayFile() { FileItem File = man.GetFile(); if (File != null) { Initialize(File); RunFile?.Invoke(this, new RunFileEventArgs(File)); } }
private void Page_RunFile(object sender, RunFileEventArgs e) { for (int i = 0; Pages.Count > i; i++) { Pages[i].PlaybackStateChanged(NAudio.Wave.PlaybackState.Stopped); } RunFile?.Invoke(sender, e); if (e.Success) { PlayingPage = (LAPP.Page)sender; } else { PlayingPage = null; } }
private void RunPythonScript() { string pythonArg = $"{Cfg.Name} {Cfg.RepeatCount}"; RunFile.RunPython(Cfg.PythonPath, PythonScriptPath, pythonArg); }