Пример #1
0
        private void main_Load(object sender, EventArgs e)
        {
            txt_Action.Text = Logging.LogMessage("OnLoad::Start");

            string sUserProfileSetupPath = AppSettings.App_Path() + "CustomModuleUserProfileSetup.xml";

            txt_Action.Text = Logging.LogMessage("OnLoad::UserProfilePath, " + sUserProfileSetupPath);
            XMLSettings.LoadUserSettings(sUserProfileSetupPath);

            txt_Action.Text = Logging.LogMessage("OnLoad::LoginToRuntime");
            g_oBatman.LoginToRuntime();
            txt_Action.Text = Logging.LogMessage("OnLoad::ProcessesingBatch");
        }
Пример #2
0
        protected override void OnStart(string[] args)
        {
            timer.Start();
            Logging.LogMessage("OnStart::Start");
            Logging.WriteToEventLog("OnStart::Start");

            string sUserProfileSetupPath = AppSettings.App_Path() + "CustomModuleUserProfileSetup.xml";

            Logging.LogMessage("OnStart::UserProfilePath, " + sUserProfileSetupPath);
            Logging.WriteToEventLog("OnStart::UserProfilePath, " + sUserProfileSetupPath);
            XMLSettings.LoadUserSettings(sUserProfileSetupPath);

            Logging.LogMessage("OnStart::LoginToRuntime");
            Logging.WriteToEventLog("OnStart::LoginToRuntime");
            g_oBatman.LoginToRuntime();
        }