public FloatingBrowser(Guid appID, string appName, string initString)
     : base(appID, appName, initString)
 {
     try
     {
         _SynchronizationContext = SynchronizationContext.Current;
         CRMWindowRouter         = AifServiceContainer.Instance.GetService <ICRMWindowRouter>();
         thisApplication         = CRMWindowRouter.LoadApplicationEntity(this.ApplicationName);
         processExitedHandler    = new EventHandler(this._Process_Exited);
     }
     catch (Exception ex)
     {
         Trace.WriteLine("WpfBrowser: " + ex.Message + "\r\n" + ex.StackTrace);
     }
 }
 public ChromeBrowser(Guid appID, string appName, string initString)
     : base(appID, appName, initString)
 {
     try
     {
         CRMWindowRouter        = AifServiceContainer.Instance.GetService <ICRMWindowRouter>();
         thisApplication        = CRMWindowRouter.LoadApplicationEntity(this.ApplicationName);
         processExitedHandler   = new EventHandler(this._Process_Exited);
         this.IsVisibleChanged += FloatingBrowser_IsVisibleChanged;
     }
     catch (Exception ex)
     {
         Trace.WriteLine("ChromeBrowser: " + ex.Message + "\r\n" + ex.StackTrace);
     }
 }