Esempio n. 1
0
 protected override void OnFormClosing(FormClosingEventArgs e)
 {
     if (e.CloseReason == CloseReason.UserClosing && !fatalError && !okToClose && mode != Mode.modeInit)
     {
         e.Cancel = true; // we defer closing to when the mode is Mode.modeExit
         if (mode == Mode.modeOracle)
         {
             uxSwitchModeToExit();
         }
     }
     else
     {
         if (oracleLogger != null)
         {
             try
             {
                 oracleLogger.Dispose();
             }
             catch (ApplicationException ex)
             {
                 handleFatalError(ex);
             }
             oracleLogger = null;
         }
         base.OnFormClosing(e);
     }
 }
Esempio n. 2
0
        private void initializeOracleLogger()
        {
            String basePath   = getDataFileBasePath();
            String logDirName = basePath + "\\" + LOG_DATA_DIRNAME;

            oracleLogger = new OracleSubmissionLogger(logDirName, teamInfo.teamId, teamInfo.teamName);
        }