Beispiel #1
0
        public string GetWindowsTimezone(string linuxTimezone)
        {
            OSvCLogService.GetLog().Debug("TimezoneService - GetWindowsTimezone() - Entry");

            string windowsTimezone = null;

            if (_timezonemap.ContainsKey(linuxTimezone))
            {
                _timezonemap.TryGetValue(linuxTimezone, out windowsTimezone);
            }

            OSvCLogService.GetLog().Debug("TimezoneService - GetWindowsTimezone() - Exit");
            return(windowsTimezone);
        }
Beispiel #2
0
        public static TimezoneService GetService()
        {
            if (_timezoneService != null)
            {
                return(_timezoneService);
            }

            try
            {
                lock (_sync)
                {
                    _timezoneService = new TimezoneService();
                }
            }
            catch (Exception e)
            {
                _timezoneService = null;
                MessageBox.Show(OOOExceptionMessages.TimezoneServiceNotInitialized, Common.Common.ErrorLabel, MessageBoxButtons.OK, MessageBoxIcon.Error);
                OSvCLogService.GetLog().Error(e.Message, e.StackTrace);
            }
            return(_timezoneService);
        }
Beispiel #3
0
        private void Debug(string logMessage, string logNote = null)
        {
            var log = OSvCLogService.GetLog();

            log.Debug(logMessage, logNote);
        }
Beispiel #4
0
        private void Error(string logMessage, string logNote = null)
        {
            var log = OSvCLogService.GetLog();

            log.Error(logMessage, logNote);
        }
 public OutOfOfficeControl(StatusBarControl statusBarControl)
 {
     _statusBarControl = statusBarControl;
     logger            = OSvCLogService.GetLog();
     InitializeComponent();
 }