private void OApplication_AppEvent(SAPbouiCOM.BoAppEventTypes EventType) { switch (EventType) { case SAPbouiCOM.BoAppEventTypes. } }
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; } }
private static void SBOApplication_AppEvent(SAPbouiCOM.BoAppEventTypes EventType) { if (EventType == SAPbouiCOM.BoAppEventTypes.aet_ShutDown) { Menu.RemoverMenus(_startupath + @"/remover_menus.xml"); } }
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); } }
/// <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; } }
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); } }
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(); } }
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; } } }
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; } }
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; } }
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); } }
/// <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); } }
public void SBO_AppEvent(SAPbouiCOM.BoAppEventTypes EventType) { }
void m_SAPApplication_AppEvent(SAPbouiCOM.BoAppEventTypes EventType) { }