public void closeMedalsPopup()
 {
     if (this.medalsPopupPanel != null)
     {
         this.medalsPopupPanel.Close();
         this.medalsPopupPanel = null;
     }
 }
 public void openAchievements(List<int> achievements)
 {
     this.closeMedalsPopup();
     this.medalsPopupPanel = new MedalsPopupWindow();
     this.medalsPopupPanel.init(achievements, this.ParentForm);
     this.medalsPopupPanel.Show(this.ParentForm);
 }