/// <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(); }
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..."); }
/// <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); }
/// <summary> /// Gettering the configuration values when constructor has created. /// </summary> public Logger() { m_oPiConfig = SSGConfigFactory.GetConfig(); }
/// <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); }
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(); }