/// <summary> /// The options_ click. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> private void Options_Click(object sender, RoutedEventArgs e) { var ow = new OptionsWindow { Owner = this, ShowInTaskbar = false }; var showDialog = ow.ShowDialog(); if (showDialog == null || !showDialog.Value) { return; } try { // Force the server to rebind this.server.Bind(); this.SetTabs(); } catch (Exception) { MessageBox.Show( "Failed to rebind to the address/port specified. The port may already be in use by another process. Please update the configuration.", "Operation Failure"); this.Options_Click(null, null); } }