Example #1
0
 private void OnApplication_Startup(object sender, StartupEventArgs e)
 {
     if (CanStartUp())
     {
         StartAppService.InjectReceiver(this);
         _appService.StartReceiving();
     }
     else
     {
         _appService.ActivateApp();
         _application.Shutdown();
     }
 }