private void btnMinimise_Click(object sender, EventArgs e)
 {
     GameEngine.Instance.playInterfaceSound("BattleResultPopup_close");
     if ((resourcesPanel != null) && !resourcesPanel.Created)
     {
         resourcesPanel.Close();
         resourcesPanel = null;
     }
     m_parent.closePopup(false, false);
     base.Close();
 }
 private void btnShowResources_Click(object sender, EventArgs e)
 {
     GameEngine.Instance.playInterfaceSound("BattleResultPopup_resources");
     if ((resourcesPanel != null) && !resourcesPanel.Created)
     {
         resourcesPanel.Close();
         resourcesPanel = null;
     }
     resourcesPanel = new AttackReportsResourcesPanel();
     resourcesPanel.setResources(this.m_reportReturnData);
     resourcesPanel.Show();
 }
 private void btnClose_Click(object sender, EventArgs e)
 {
     if (this.showPostTutorialThingy)
     {
         CastleMapBattlePanel2.fromReports = false;
     }
     if ((resourcesPanel != null) && !resourcesPanel.Created)
     {
         resourcesPanel.Close();
         resourcesPanel = null;
     }
     base.Close();
     m_parent.closePopup(true, this.showPostTutorialThingy);
 }