Exemple #1
0
 public MainWindow()
 {
     InitializeComponent();
     InitializeRecorder();
     Task.Delay(3000);
     webcam = new webCam();
     webcam.InitializeWebCam(ref webImage);
     webcam.Start();
     Task.Delay(2000);
     InitializeRecorder();
     Task.Delay(3000);
     speechSynthesizer = new SpeechSynthesizer();
     withdraw          = new Withdraw();
     transaction       = new Transaction();
 }
 public MainWindow()
 {
     InitializeComponent();
     InitializeRecorder();
     Task.Delay(2000);
     webcam = new webCam();
     webcam.InitializeWebCam(ref webImage);
     webcam.Start();
     Task.Delay(2000);
     InitializeRecorder();
     Task.Delay(2000);
     speechSynthesizer      = new SpeechSynthesizer();
     speechSynthesizer.Rate = -1;
     timer          = new DispatcherTimer();
     timer.Interval = new TimeSpan(0, 0, 1);
     timer.Tick    += Timer_Tick;
 }