Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        private void Debug(string logMessage, string logNote = null)
        {
            var log = OSvCLogService.GetLog();

            log.Debug(logMessage, logNote);
        }
Exemplo n.º 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();
 }