/// <summary> /// Runs the first-run configuration window which lets the user specify a server to connect to. /// </summary> private void RunConfigurationWindow() { FirstRunConfiguration firstRun = new FirstRunConfiguration(); bool? firstRunHasRun = firstRun.ShowDialog(); //If the user pressed cancel or closed the window, don't let them continue. if (firstRunHasRun.HasValue && firstRunHasRun.Value == false) { Close(); Environment.Exit(0); } }
private void reconfigureMenuItem_Click(object sender, RoutedEventArgs e) { FirstRunConfiguration firstRun = new FirstRunConfiguration { Reconfigure = true }; bool? result = firstRun.ShowDialog(); if ((result.HasValue) && (result.Value)) { LoadConfiguration(true); } }