示例#1
0
 //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();
 }
示例#2
0
        public void ShowUserSettings(object sender, EventArgs e)
        {
            UserSettingsWindow dlg = new UserSettingsWindow();

            dlg.ShowDialog();
        }