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; }
/// <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; }