Esempio n. 1
0
 private void RemoveT_btn_Click(object sender, RoutedEventArgs e)
 {
     if (listT.SelectedIndex == -1)
     {
         MessageBox.Show("Select a round!");
     }
     else
     {
         SqlConnect.RemoveRound(listT, queryR, sqlConnection);
         SqlConnect.ShowRound(listT, queryT, sqlConnection);
     }
 }
Esempio n. 2
0
 private void RemoveA_btn_Click(object sender, RoutedEventArgs e)
 {
     //If nothing is selected
     if (listRounds.SelectedIndex == -1)
     {
         MessageBox.Show("Select a round!");
     }
     else
     {
         SqlConnect.RemoveRound(listRounds, queryR, sqlConnection);
         SqlConnect.ShowRound(listRounds, queryA, sqlConnection);
     }
 }
Esempio n. 3
0
        public BlackOps4()
        {
            InitializeComponent();
            cleartextbox();
            string connectionString = ConfigurationManager.ConnectionStrings["ZombiesRound.Properties.Settings.SQLZOOConnectionString"].ConnectionString;

            sqlConnection = new SqlConnection(connectionString);
            SqlConnect.ShowRound(listRounds, queryA, sqlConnection);
            SqlConnect.ShowRound(listAnicent, queryB, sqlConnection);
            SqlConnect.ShowRound(listIX, queryC, sqlConnection);
            SqlConnect.ShowRound(listV, queryD, sqlConnection);
            SqlConnect.ShowRound(listB, queryE, sqlConnection);
            SqlConnect.ShowRound(listC, queryF, sqlConnection);
            SqlConnect.ShowRound(listD, queryDE, sqlConnection);
            SqlConnect.ShowRound(listT, queryT, sqlConnection);
        }
Esempio n. 4
0
        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);
            }
        }
Esempio n. 5
0
        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);
            }
        }