/// <summary>
        /// Everything needed to shut down.
        /// </summary>
        private void ShutdownAll()
        {
            try
            {
                if (this.CommandBarExists("SuiteCRM"))
                {
                    Log.Info(catalogue.GetString("{0}: Removing SuiteCRM command bar", "ThisAddIn_ShutdownAll"));
                    this.objSuiteCRMMenuBar2007.Delete();
                }

                this.UnregisterEvents();
                this.ShutdownProcesses();

                if (SuiteCRMUserSession != null)
                {
                    SuiteCRMUserSession.LogOut();
                }

                DisposeOf(appointmentSynchroniser);
                DisposeOf(contactSynchroniser);
                DisposeOf(taskSynchroniser);
            }
            catch (Exception ex)
            {
                log.Error("ThisAddIn.ThisAddIn_Shutdown", ex);
            }
        }
Beispiel #2
0
 private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
 {
     try
     {
         if (SuiteCRMUserSession != null)
         {
             SuiteCRMUserSession.LogOut();
         }
         if (this.CommandBarExists("SuiteCRM"))
         {
             this.objSuiteCRMMenuBar2007.Delete();
         }
         this.UnregisterEvents();
     }
     catch (Exception ex)
     {
         log.Error("ThisAddIn.ThisAddIn_Shutdown", ex);
     }
 }
Beispiel #3
0
        /// <summary>
        /// Everything needed to shut down.
        /// </summary>
        private void ShutdownAll()
        {
            try
            {
                if (this.CommandBarExists("SuiteCRM"))
                {
                    Log.Info("ThisAddIn_Shutdown: Removing SuiteCRM command bar");
                    this.objSuiteCRMMenuBar2007.Delete();
                }

                this.UnregisterEvents();
                this.ShutdownProcesses();

                if (SuiteCRMUserSession != null)
                {
                    SuiteCRMUserSession.LogOut();
                }
            }
            catch (Exception ex)
            {
                log.Error("ThisAddIn.ThisAddIn_Shutdown", ex);
            }
        }