void map_default_start_Click(object sender, RoutedEventArgs e) { if (this.activeMap != null) { DefaultLocationDialog dialog = new DefaultLocationDialog(this.activeMap.GetValue("default_start"), this.activeMap.GetValue("start_locations") ?? ""); dialog.ShowDialog(); this.activeMap.SetValue("default_start", dialog.FinalValue); } }