public static IOSvCLog GetLog() { if (_log != null) { return(_log); } lock (_sync) { try { if (_log == null) { _log = new IOSvCDefaultLog(); } } catch (Exception e) { MessageBox.Show(OSCExceptionMessages.LogServiceNotInitialized, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } return(_log); }
public OutOfOfficeControl(StatusBarControl statusBarControl) { _statusBarControl = statusBarControl; logger = OSvCLogService.GetLog(); InitializeComponent(); }