Example #1
0
        private void SyncRibbon_Load(object sender, RibbonUIEventArgs e)
        {
            _confManager    = new ConfigurationManager();
            _config         = _confManager.GetConfig();
            _syncController = new SyncController(_confManager);

            if (_config.autosync == 1)
            {
                _syncController.InitializeAutoSync();
                btn_autosync.Label = "Deactivate";
            }
            else
            {
                _syncController.InitializeSync();
            }

            updateInterval    = (_confManager.GetUpdateInterval() / 1000);
            edb_interval.Text = updateInterval.ToString();
        }