Esempio n. 1
0
        public static void MenuEvent(ref SAPbouiCOM.MenuEvent pVal, out bool BubbleEvent)
        {
            if (InformesTerceros == null)
            {
                InformesTerceros = new Operations();
            }

            BubbleEvent = true;
            try
            {
                if (pVal.MenuUID == "BYB_MITR02" &&
                    !pVal.BeforeAction)
                {
                    BalanceTerceros.getTransactionList();
                }
            }
            catch (COMException comEx)
            {
                Exception er = new Exception(Convert.ToString("COM Error::" + comEx.ErrorCode + "::" + comEx.Message + "::" + comEx.StackTrace));
                _Logger.Error("", comEx);
            }
            catch (Exception er)
            {
                _Logger.Error("", er);
            }
        }
Esempio n. 2
0
        static Settings()
        {
            AppDataPath = AppDomain.CurrentDomain.BaseDirectory + T1.B1.Base.InstallInfo.InstallInfo.Config.configurationBaseFolder;
            if (!Directory.Exists(AppDataPath))
            {
                Directory.CreateDirectory(Settings.AppDataPath);
            }

            _Main = new Main();
            _Main.Initialize();

            _BalanceTerceros = new BalanceTerceros();
            _BalanceTerceros.Initialize();
        }