private void DoneBtn_Click(object sender, RoutedEventArgs e) { if (ChildCheck.IsChecked == true) { Properties.Settings.Default.ParentName = ParentName.Text; Properties.Settings.Default.ChildName = ChildName.Text; Properties.Settings.Default.ParentLockCode = LockCode.Text; Properties.Settings.Default.ChildEnabled = true; ParentLockSelect parentLockSelect = new ParentLockSelect(Curlibrary); parentLockSelect.Show(); App.Current.MainWindow.Show(); this.Close(); } else { Properties.Settings.Default.ChildEnabled = false; App.Current.MainWindow.Show(); this.Close(); } }
private void DoneBtn_Click(object sender, RoutedEventArgs e) { //Get Info From Text Box(es) and save if (library.gameList.Count < 1) { //no games were added to the library, let user know warningDisplay = true; if (ChildCheck.IsChecked == true) { this.Height = 645; EmptyLibraryWarning.Visibility = Visibility.Visible; } else { this.Height = 480; EmptyLibraryWarning.Margin = new Thickness(10, 366, 0, 0); EmptyLibraryWarning.Visibility = Visibility.Visible; } } else { if (ChildCheck.IsChecked == true) { Properties.Settings.Default.ParentName = ParentName.Text; Properties.Settings.Default.ChildName = ChildName.Text; Properties.Settings.Default.ParentLockCode = LockCode.Text; Properties.Settings.Default.ChildEnabled = true; ParentLockSelect parentLockSelect = new ParentLockSelect(library); parentLockSelect.Show(); this.Close(); } else { Properties.Settings.Default.ChildEnabled = false; Properties.Settings.Default.ParentalLockEngaged = false; App.Current.MainWindow.Show(); this.Close(); } } }