private void PresentTheAttributes(int planet) { Class1 lol1 = new Class1(); string[,] MeteorVar = new string[8, 21]; MeteorVar = lol1.Meteor(); string[,] AttributeNameVar = new string[1, 21]; AttributeNameVar = lol1.AttributeName4Meteor(); switch (planet) { case 0: ForThemTheKids.Text = "Hyakutake"; break; case 1: ForThemTheKids.Text = "Swift-Tuttle"; break; case 2: ForThemTheKids.Text = "Halleys Comet"; break; case 3: ForThemTheKids.Text = "Shoemaker-Levy 9"; break; default: break; } //System.Diagnostics.Debug.WriteLine(AttributeName[0, 20]); //System.Diagnostics.Debug.WriteLine(AttributeName[0, 0]); AttributeName.Text = ""; AttributeProperty.Text = ""; for (int i = 0; i < 3; i++) { AttributeName.Text = AttributeName.Text + AttributeNameVar[0, i] + "\n"; AttributeProperty.Text = AttributeProperty.Text + MeteorVar[planet, i] + "\n"; } }
private void PresentTheAttributes(int planet) { Class1 lol1 = new Class1(); string[,] MeteorVar = new string[8, 21]; MeteorVar = lol1.Universe(); string[,] AttributeNameVar = new string[1, 21]; AttributeNameVar = lol1.AttributeName4Meteor(); switch (planet) { case 0: ForThemTheKids.Text = "Spiral"; break; case 1: ForThemTheKids.Text = "Ellipse"; break; case 2: ForThemTheKids.Text = "S0"; break; case 3: ForThemTheKids.Text = "Irregular"; break; default: break; } //System.Diagnostics.Debug.WriteLine(AttributeName[0, 20]); //System.Diagnostics.Debug.WriteLine(AttributeName[0, 0]); AttributeName.Text = ""; AttributeProperty.Text = ""; for (int i = 0; i < 3; i++) { AttributeName.Text = AttributeName.Text + AttributeNameVar[0, i] + "\n"; AttributeProperty.Text = AttributeProperty.Text + MeteorVar[planet, i] + "\n"; } }
private void PresentTheAttributes(int planet) { Class1 lol1 = new Class1(); string[,] SolarSystemVar = new string[8, 21]; SolarSystemVar = lol1.SolarSystemPlanets(); string[,] AttributeNameVar = new string[1, 21]; AttributeNameVar = lol1.AttributeName4Planets(); switch (planet) { case 0: ForThemTheKids.Text = "Mercury"; break; case 1: ForThemTheKids.Text = "Venus"; break; case 2: ForThemTheKids.Text = "Earth"; break; case 3: ForThemTheKids.Text = "Mars"; break; case 4: ForThemTheKids.Text = "Jupiter"; break; case 5: ForThemTheKids.Text = "Saturn"; break; case 6: ForThemTheKids.Text = "Uranus"; break; case 7: ForThemTheKids.Text = "Neptune"; break; default: break; } //System.Diagnostics.Debug.WriteLine(AttributeName[0, 20]); //System.Diagnostics.Debug.WriteLine(AttributeName[0, 0]); AttributeName.Text = ""; AttributeProperty.Text = ""; for (int i = 0; i < 21; i++) { AttributeName.Text = AttributeName.Text + AttributeNameVar[0, i] + "\n"; AttributeProperty.Text = AttributeProperty.Text + SolarSystemVar[planet, i] + "\n"; } }
private void PresentTheAttributes(int planet) { Class1 lol1 = new Class1(); string[,] SolarSystemVar = new string[8, 4]; SolarSystemVar = lol1.TriviaThing(); string[,] AttributeNameVar = new string[1, 4]; AttributeNameVar = lol1.AttributeName4Trivia(); Landform.Text = SolarSystemVar[planet, 0]; switch (planet) { case 0: PropertyB.Text = ""; for (int i = 1; i < 4; i++) { PropertyB.Text = PropertyB.Text + SolarSystemVar[planet, i] + "\n"; if (i == 2) { PropertyB.Text = PropertyB.Text + "\n"; } } break; case 1: PropertyA.Text = ""; for (int i = 1; i < 4; i++) { PropertyA.Text = PropertyA.Text + SolarSystemVar[planet, i] + "\n"; if (i == 2) { PropertyA.Text = PropertyA.Text + "\n"; } } break; case 2: PropertyB.Text = ""; for (int i = 1; i < 4; i++) { PropertyB.Text = PropertyB.Text + SolarSystemVar[planet, i] + "\n"; if (i == 2) { PropertyB.Text = PropertyB.Text + "\n"; } } break; case 3: PropertyA.Text = ""; for (int i = 1; i < 4; i++) { PropertyA.Text = PropertyA.Text + SolarSystemVar[planet, i] + "\n"; if (i == 2) { PropertyA.Text = PropertyA.Text + "\n"; } } break; case 4: PropertyB.Text = ""; for (int i = 1; i < 4; i++) { PropertyB.Text = PropertyB.Text + SolarSystemVar[planet, i] + "\n"; if (i == 2) { PropertyB.Text = PropertyB.Text + "\n"; } } break; case 5: PropertyA.Text = ""; for (int i = 1; i < 4; i++) { PropertyA.Text = PropertyA.Text + SolarSystemVar[planet, i] + "\n"; if (i == 2) { PropertyA.Text = PropertyA.Text + "\n"; } } break; case 6: PropertyA.Text = ""; for (int i = 1; i < 4; i++) { PropertyA.Text = PropertyA.Text + SolarSystemVar[planet, i] + "\n"; if (i == 2) { PropertyA.Text = PropertyA.Text + "\n"; } } break; case 7: PropertyB.Text = ""; for (int i = 1; i < 4; i++) { PropertyB.Text = PropertyB.Text + SolarSystemVar[planet, i] + "\n"; if (i == 2) { PropertyB.Text = PropertyB.Text + "\n"; } } break; default: break; } //System.Diagnostics.Debug.WriteLine(AttributeName[0, 20]); //System.Diagnostics.Debug.WriteLine(AttributeName[0, 0]); }