//opening the settings window private void MenuSettings_Click(object sender, RoutedEventArgs e) { Windows.UserSettingsWindow settingsWindow = new UserSettingsWindow (SavedDataPlaceholder.CardsBackColor, SavedDataPlaceholder.JoiningTimeoutEnabled, SavedDataPlaceholder.JoiningTimeoutMinutesAmount, SavedDataPlaceholder.ReadinessTimeoutEnabled, SavedDataPlaceholder.ReadinessTimeoutMinutesAmount, SavedDataPlaceholder.LocationOfThirdPlayersCards) { Owner = this, }; settingsWindow.SettingsChanged += SettingsWindow_SettingsChanged; settingsWindow.ShowDialog(); MemoryManagement.FlushMemory(); }
public void ShowUserSettings(object sender, EventArgs e) { UserSettingsWindow dlg = new UserSettingsWindow(); dlg.ShowDialog(); }