Ejemplo n.º 1
0
        public void BroadCasting()
        {
            for (int i = 0; i < RMESID.Count; i++)
            {
                //RMESID[i] = item1[i].SubItems[2].Text;

                List <AndonAlertEntity> AEntity = AndonFactory.GetByPline(RMESID[i]);
                foreach (AndonAlertEntity en in AEntity)
                {
                    BroadCastFactory cast     = new BroadCastFactory(en);
                    List <string>    listcall = cast.speaking();
                    if (listcall != null)
                    {
                        foreach (string sss in listcall)
                        {
                            strToVoice(sss);
                            strToVoice(sss);
                            //lib.Volume = 100;
                        }
                        en.REPORT_FLAG = "N";
                        AndonFactory.Update(en);
                    }
                    else
                    {
                        continue;
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public void doWork()
        {
            while (!stopThread)
            {
                for (int i = 0; i < RMESID.Count; i++)
                {
                    //RMESID[i] = item1[i].SubItems[2].Text;
                    this.musicplay();
                    List <AndonAlertEntity> AEntity = AndonFactory.GetByPline(RMESID[i]);

                    //{ axWindowsMediaPlayer1.settings.volume = 5; }
                    //else axWindowsMediaPlayer1.settings.volume = 60;
                }
                this.BroadCasting();
                // MessageBox.Show("Hello, Chen Jun");
                Thread.Sleep(5000);
                //this.requeststop();
            }

            // Thread.Sleep(5000);
        }