private void AddRoundT_Click(object sender, RoutedEventArgs e) { string text; int round; string map = "Tag"; text = mytextboxT.Text; if (!int.TryParse(text, out round)) { MessageBox.Show("Not an integer"); } else { SqlConnect.AddRound(listT, queryT, sqlConnection, map, round); SqlConnect.ShowRound(listT, queryT, sqlConnection); } }
private void AddRoundAN_Click(object sender, RoutedEventArgs e) { string text; int round; string map = "Ancient"; text = myTextBoxA.Text; if (!int.TryParse(text, out round)) { MessageBox.Show("Not an integer"); } else { SqlConnect.AddRound(listAnicent, queryB, sqlConnection, map, round); SqlConnect.ShowRound(listAnicent, queryB, sqlConnection); } }