@@ -504,19 +504,23 @@ private void CasualtyTimeline_Click(object sender, EventArgs e) { }
504
504
#region WORLD MENU EVENTS
505
505
private void WondersOfWorld_Click ( object sender , EventArgs e )
506
506
{
507
- //WondersOfWorldForm WondersOfWorldForm = new WondersOfWorldForm();
508
- //WondersOfWorldForm.Load += new EventHandler(AdvisorsForm_Load); //so you set the correct size of form
509
- //WondersOfWorldForm.ShowDialog();
507
+ WondersOfWorldPanel WondersOfWorldPanel = new WondersOfWorldPanel ( this , 622 , 421 ) ;
508
+ Controls . Add ( WondersOfWorldPanel ) ;
509
+ WondersOfWorldPanel . Location = new Point ( this . ClientSize . Width / 2 - WondersOfWorldPanel . Size . Width / 2 , this . ClientSize . Height / 2 - WondersOfWorldPanel . Size . Height / 2 ) ;
510
+ WondersOfWorldPanel . Show ( ) ;
511
+ WondersOfWorldPanel . BringToFront ( ) ;
510
512
}
511
513
512
514
private void Top5Cities_Click ( object sender , EventArgs e ) { }
513
515
private void CivScore_Click ( object sender , EventArgs e ) { }
514
516
515
517
private void Demographics_Click ( object sender , EventArgs e )
516
518
{
517
- //DemographicsForm DemographicsForm = new DemographicsForm();
518
- //DemographicsForm.Load += new EventHandler(AdvisorsForm_Load); //so you set the correct size of form
519
- //DemographicsForm.ShowDialog();
519
+ DemographicsPanel DemographicsPanel = new DemographicsPanel ( this , 622 , 421 ) ;
520
+ Controls . Add ( DemographicsPanel ) ;
521
+ DemographicsPanel . Location = new Point ( this . ClientSize . Width / 2 - DemographicsPanel . Size . Width / 2 , this . ClientSize . Height / 2 - DemographicsPanel . Size . Height / 2 ) ;
522
+ DemographicsPanel . Show ( ) ;
523
+ DemographicsPanel . BringToFront ( ) ;
520
524
}
521
525
private void Spaceships_Click ( object sender , EventArgs e ) { }
522
526
#endregion
0 commit comments