void map_victory_x_Click(object sender, RoutedEventArgs e)
 {
     if (this.activeMap != null)
     {
         VictoryXDialog dialog = new VictoryXDialog(this.activeMap.GetValue("victoryX"));
         dialog.ShowDialog();
         if (int.Parse(dialog.FinalValue) != 0)
         {
             this.activeMap.SetValue("victoryX", dialog.FinalValue);
         }
         else
         {
             this.activeMap.SetValue("victoryX", null);
         }
     }
 }
 void map_victory_x_Click(object sender, RoutedEventArgs e)
 {
     if (this.activeMap != null)
     {
         VictoryXDialog dialog = new VictoryXDialog(this.activeMap.GetValue("victoryX"));
         dialog.ShowDialog();
         if (int.Parse(dialog.FinalValue) != 0)
         {
             this.activeMap.SetValue("victoryX", dialog.FinalValue);
         }
         else
         {
             this.activeMap.SetValue("victoryX", null);
         }
     }
 }