Example #1
0
 private void btn_module3_Click(object sender, EventArgs e)
 {
     Module3 module3 = Application.OpenForms.OfType<Module3>().FirstOrDefault();
     if (module3 == null)
     {
         module3 = new Module3();
         module3.Show();
     }
     else module3.BringToFront();
 }
Example #2
0
 public void StartTeLLer(Module3 _form)
 {
     this.form = _form;
     try
     {
         int cp = CultureInfo.CurrentCulture.TextInfo.OEMCodePage;
         pTeLLer = new Process();
         pTeLLer.StartInfo.FileName = Environment.GetEnvironmentVariable("TELLER");
         //pTeLLer.StartInfo.FileName = path+"\\TeLLer\\dist\\build\\TeLLer\\TeLLer.exe";
         pTeLLer.StartInfo.UseShellExecute = false;
         pTeLLer.StartInfo.RedirectStandardOutput = true;
         pTeLLer.OutputDataReceived += new DataReceivedEventHandler(TeLLerOutputHandler);
         pTeLLer.StartInfo.RedirectStandardInput = true;
         pTeLLer.StartInfo.CreateNoWindow = true;
         pTeLLer.StartInfo.StandardOutputEncoding = Encoding.GetEncoding(cp);  // Need it to be able to use french accents
         pTeLLer.Start();
         tellerStreamWriter = pTeLLer.StandardInput;
         pTeLLer.BeginOutputReadLine();
         // TeLLer commands to load a file (l) and to start (s) :
         tellerStreamWriter.WriteLine("l " + path + @"\scenar02");
         tellerStreamWriter.WriteLine("s");
     }
     catch (Exception e) { throw new NotImplementedException(); }
 }
 public EmotionRecognition(Module3 form)
 {
     this.form_module3 = form;
     SelectCaptureDevice();
 }