示例#1
0
 /// <summary>
 /// Initialize and loading configuration.
 /// </summary>
 public FrmTest()
 {
     InitializeComponent();
     m_oPiLibrary          = new PDFCreator();
     m_oPiWebService       = new PDFCreatorWebServiceSoapClient();
     m_strPiSampleFileName = string.Empty;
     m_oPiConfig           = SSGConfigFactory.GetConfig();
 }
示例#2
0
        static private PDFCreator oPiPDFCreator;           // object library

        #endregion

        #region Contructor

        /// <summary>
        /// Initialize and loading configuration
        /// </summary>
        public PDFCreatorService()
        {
            InitializeComponent();
            // Load configuration file from execution path
            oPiConfig     = SSGConfigFactory.GetConfig(GetConfigFile());
            oPiPDFCreator = new PDFCreator();
            ePiState      = ProcessState.IDLE_STATE;
            Logger.WriteLog("PDF Generator Service has initialized...");
        }
示例#3
0
 /// <summary>
 /// Gettering location of the system log filename from the configuration object.
 /// </summary>
 /// <returns>The string of system log file name.</returns>
 private static string GetLogFilename()
 {
     m_oPiConfig = SSGConfigFactory.GetConfig();
     return(m_oPiConfig.SystemLog);
 }
示例#4
0
 /// <summary>
 /// Gettering the configuration values when constructor has created.
 /// </summary>
 public Logger()
 {
     m_oPiConfig = SSGConfigFactory.GetConfig();
 }
示例#5
0
 /// <summary>
 /// Gettering the specified configuration values when constructor has created.
 /// </summary>
 /// <param name="strFilename"></param>
 public PDFCreator(string strFilename)
 {
     // Get the configuration
     m_oPiConfig = SSGConfigFactory.GetConfig(strFilename);
 }
示例#6
0
        private SSGConfig m_oPiConfig;     // Configuration objects

        #endregion

        #region Contructor

        /// <summary>
        /// Gettering the configuration values when constructor has created.
        /// </summary>
        public PDFCreator()
        {
            // Get the configuration
            m_oPiConfig = SSGConfigFactory.GetConfig();
        }