private void StatsButton_Click(object sender, EventArgs e) { this.Hide(); var statsPage = new StatsPage(); statsPage.ShowDialog(); }