示例#1
0
        private SyncConfig _currentSyncConfig; // Current Synchronization Configuration object

        /// <summary>
        /// Initializes the WelcomeScreenWindow
        /// </summary>
        /// <param name="main">Reference to the Main Window</param>
        public OptionsWindow(MainWindow main)
        {
            _main = main;

            // Get Current Sync Config
            _currentSyncConfig = _main.LogicLayer.GetSyncConfig();

            InitializeComponent();
            InitializeSyncConfigComponents();
            InitializeComponentsFromSettings();

            // Sets up general window properties
            Owner = _main;
            ShowInTaskbar = false;
        }
示例#2
0
 /// <summary>
 /// Update the Sync Config
 /// </summary>
 /// <param name="config">The new value of the Sync Config</param>
 public void UpdateSyncConfig(SyncConfig config)
 {
     SyncConfig.Instance = config;
 }