Ejemplo n.º 1
0
 private void OApplication_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
 {
     switch (EventType)
     {
         case SAPbouiCOM.BoAppEventTypes.
     }
 }
Ejemplo n.º 2
0
        static void SBO_Application_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
        {
            switch (EventType)
            {
            case SAPbouiCOM.BoAppEventTypes.aet_ShutDown:
                //Exit Add-On
                System.Windows.Forms.Application.Exit();
                break;

            case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged:
                break;

            case SAPbouiCOM.BoAppEventTypes.aet_FontChanged:
                break;

            case SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged:
                break;

            case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition:
                break;

            default:
                break;
            }
        }
Ejemplo n.º 3
0
 private static void SBOApplication_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
 {
     if (EventType == SAPbouiCOM.BoAppEventTypes.aet_ShutDown)
     {
         Menu.RemoverMenus(_startupath + @"/remover_menus.xml");
     }
 }
Ejemplo n.º 4
0
        public void SBO_Application_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
        {
            try
            {
                switch (EventType)
                {
                case SAPbouiCOM.BoAppEventTypes.aet_ShutDown:
                    System.Windows.Forms.Application.Exit();
                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged:
                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_FontChanged:
                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged:
                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition:
                    break;

                default:
                    break;
                }
            }
            catch (Exception ex)
            {
                Utilities.LogException(ex);
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Method to control events like shutdown, company changed, font changed, language changed, server termination
        /// </summary>
        /// <param name="EventType"></param>
        static void App_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
        {
            switch (EventType)
            {
            case SAPbouiCOM.BoAppEventTypes.aet_ShutDown:
                ShutdownEvent();
                break;

            case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged:
                ShutdownEvent();
                break;

            case SAPbouiCOM.BoAppEventTypes.aet_FontChanged:
                // Change Font Event
                break;

            case SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged:
                // Change Language Event
                break;

            case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition:
                ShutdownEvent();
                break;

            default:
                // Set Default Here
                break;
            }
        }
Ejemplo n.º 6
0
        internal void sapApp_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
        {
            try
            {
                switch (EventType)
                {
                case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition:
                    try
                    {
                        ShutDown();
                    }
                    catch (Exception er)
                    {
                        Logger.Error(Messages.ServerTerminationError, er);
                    }
                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged:
                    try
                    {
                        ConfigureI18N();
                    }
                    catch (Exception er)
                    {
                        Logger.Error(Messages.EventLanguageChangedError, er);
                    }
                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged:
                    try
                    {
                        ShutDown();
                    }
                    catch (Exception er)
                    {
                        Logger.Error(Messages.EventCompanyChangedError, er);
                    }
                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_ShutDown:
                    try
                    {
                        ShutDown();
                    }
                    catch (Exception er)
                    {
                        Logger.Error(Messages.ShutdownError, er);
                    }
                    break;
                }
            }
            catch (Exception e)
            {
                Logger.Error(e.Message, e);
                Environment.Exit(20);
            }
        }
Ejemplo n.º 7
0
 private void oApplication_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
 {
     if (EventType == SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged || EventType == SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged || EventType == SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition || EventType == SAPbouiCOM.BoAppEventTypes.aet_ShutDown)
     {
         //string strFileName = (System.Windows.Forms.Application.StartupPath).ToString() + @"\" + "Remove Menus.xml";
         //clsSBO.LoadFromXML(ref strFileName, oApplication);
         oApplication.SetStatusBarMessage("eOrderEntry Addon Disconnected successfully - SAP", SAPbouiCOM.BoMessageTime.bmt_Short, false);
         GC.Collect();
         System.Windows.Forms.Application.Exit();
         TmpThread.Start();
     }
 }
Ejemplo n.º 8
0
 private static void Application_AppEvent(SAPbouiCOM.BoAppEventTypes eventType)
 {
     switch (eventType)
     {
     case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged:
     case SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged:
     case SAPbouiCOM.BoAppEventTypes.aet_ShutDown:
     case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition:
         Disconnect();
         System.Windows.Forms.Application.Exit();
         break;
     }
 }
 void __app_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
 {
     switch (EventType)
     {
     case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged:
     case SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged:
     case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition:
     case SAPbouiCOM.BoAppEventTypes.aet_ShutDown:
     {
         Environment.Exit(0);
         break;
     }
     }
 }
Ejemplo n.º 10
0
        private static void SBO_Application_AppEvent(SAPbouiCOM.BoAppEventTypes oAppEvent)
        {
            switch (oAppEvent)
            {
            case SAPbouiCOM.BoAppEventTypes.aet_ShutDown:
            case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged:
            case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition:
                CommonFunctions.POST(ServiceLayer.Logout, null, sessionId, out _);
                Environment.Exit(0);
                break;

            case SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged:
            case SAPbouiCOM.BoAppEventTypes.aet_FontChanged:
                RemoveMenus();
                AddMenuItems();
                break;
            }
        }
Ejemplo n.º 11
0
        void application_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
        {
            switch (EventType)
            {
            case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged:
                company.Disconnect();
                Environment.Exit(0);
                break;

            case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition:
                company.Disconnect();
                Environment.Exit(0);
                break;

            case SAPbouiCOM.BoAppEventTypes.aet_ShutDown:
                company.Disconnect();
                Environment.Exit(0);
                break;
            }
        }
Ejemplo n.º 12
0
        void objApplication_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
        {
            //T1.B1.MenuManager.Operations objMenuManager = new MenuManager.Operations();
            try
            {
                switch (EventType)
                {
                case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged:

                    Application.Exit();
                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_FontChanged:
                    Application.Exit();
                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_LanguageChanged:


                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition:

                    Application.Exit();
                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_ShutDown:
                    Application.Exit();
                    break;
                }
            }
            catch (COMException comEx)
            {
                _Logger.Error("", comEx);
            }
            catch (Exception er)
            {
                _Logger.Error("", er);
            }
        }
Ejemplo n.º 13
0
        /// <summary>
        /// Metodo encargado de Gestionar los eventos de Aplicacion
        /// </summary>
        /// <param name="EventType">Objeto con la informacion completa del Evento</param>
        void m_SBO_Appl_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
        {
            try
            {
                switch (EventType)
                {
                case SAPbouiCOM.BoAppEventTypes.aet_ServerTerminition:
                    System.Windows.Forms.Application.Exit();    //terminamos la ejecucion del Addon
                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_ShutDown:
                    System.Windows.Forms.Application.Exit();    //terminamos la ejecucion del Addon
                    break;

                case SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged:
                    System.Windows.Forms.Application.Exit();    //terminamos la ejecucion del Addon
                    break;
                }
            }
            catch (Exception ex)
            {
                Msj_Appl.Errores(14, "m_SBO_Appl_AppEvent() > Eventos_SBO.cs" + ex.Message);
            }
        }
Ejemplo n.º 14
0
 public void SBO_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
 {
 }
Ejemplo n.º 15
0
 void m_SAPApplication_AppEvent(SAPbouiCOM.BoAppEventTypes EventType)
 {
 }