/// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= /// <summary> /// Constructor /// </summary> /// <history> /// 07 Nov 09 Cynic - Started /// </history> public ctlOISBase() { // Acquire the Singleton g_Logger instance - this must be done first g_Logger = OISLogger.OISLoggerInstance; InitializeComponent(); }
/// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= /// <summary> /// Constructor /// </summary> public OISObjBase() { // create the singleton logger instance if (g_Logger == null) { // Acquire the Singleton g_Logger instance g_Logger = OISLogger.OISLoggerInstance; } }
/// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= /// <summary> /// Constructor /// </summary> public frmOISBase() { // create a handle now. This prevents a nasty InvokeRequired bug // google (InvokeRequired bug handle) for more info this.CreateHandle(); // Acquire the Singleton g_Logger instance g_Logger = OISLogger.OISLoggerInstance; // set the icon for the form if (g_Logger != null) { if (g_Logger.AppIcon != null) { this.Icon = g_Logger.AppIcon; } } }