public OneTimePhoneEmulatorDialogMonitor(ILogger logger)
 {
     _logger = logger;
     _windowsPhoneEmulatorDialogMonitor = new WindowsPhoneEmulatorDialogMonitor(logger);
     _timer = new Timer(1000);
     _timer.Elapsed += (sender, e) => _windowsPhoneEmulatorDialogMonitor.ExecuteDialogSlapDown(msg =>
     {
         _logger.Information(msg);
         _timer.Stop();
         _timer = null;
         _windowsPhoneEmulatorDialogMonitor = null;
     });
     _timer.Start();
 }
 public OneTimePhoneEmulatorDialogMonitor(ILogger logger)
 {
     _logger = logger;
     _windowsPhoneEmulatorDialogMonitor = new WindowsPhoneEmulatorDialogMonitor(logger);
     _timer          = new Timer(1000);
     _timer.Elapsed += (sender, e) => _windowsPhoneEmulatorDialogMonitor.ExecuteDialogSlapDown(msg =>
     {
         _logger.Information(msg);
         _timer.Stop();
         _timer = null;
         _windowsPhoneEmulatorDialogMonitor = null;
     });
     _timer.Start();
 }