private void CountPlanetButton_Click(object sender, EventArgs e) { try { string count = Convert.ToString(SpaceObjects.CountPlanets()); FormsUtils.ShowMessage(count); } catch { FormsUtils.ErrorMessageBox("Error"); } }