private void question7()
        {
            delete_btn.Visible = false;
            Update_btn.Visible = false;
            Edit_btn.Visible = false;
            comboBox1.Visible = true;
            label1.Text = "Choose Game:";
            label1.Visible = true;


            allgames = server.wpfGetAllGames();
            comboBox1.Items.Clear();
            foreach (var item in allgames)
            {
                comboBox1.Items.Add(item.gameId + " || " + item.firstPlayer + " VS " + item.secondPlayer + " Mode: " + item.gameMode);
            }

            q7 = new Q1(playerId, playerName, server, 2);
            this.ClientSize = new System.Drawing.Size(400, 400);
            elementHost.Location = new System.Drawing.Point(5, 70);
            elementHost.Name = "elementHost";
            elementHost.Size = new System.Drawing.Size(395, 300);
            elementHost.TabIndex = 2;
            elementHost.Text = "elementHost";
            elementHost.Child = q7;
            Controls.Add(this.elementHost);
        }
        private void question8()
        {
            delete_btn.Visible = false;
            Update_btn.Visible = false;
            Edit_btn.Visible = false;
            comboBox1.Visible = true;
            label1.Text = "Choose Champ:";
            label1.Visible = true;


            allChamp = server.getChampList();
            comboBox1.Items.Clear();
            foreach (var item in allChamp)
            {
                comboBox1.Items.Add(item.id + " || " + item.name + " Location: " + item.location);
            }

            q8 = new Q1(playerId, playerName, server, 3);
            this.ClientSize = new System.Drawing.Size(400, 400);
            elementHost.Location = new System.Drawing.Point(5, 70);
            elementHost.Name = "elementHost";
            elementHost.Size = new System.Drawing.Size(395, 300);
            elementHost.TabIndex = 2;
            elementHost.Text = "elementHost";
            elementHost.Child = q8;
            Controls.Add(this.elementHost);
        }
 //Create wpf user control for querie number 1
 private void question1()
 {
     delete_btn.Enabled = false;
     Update_btn.Enabled = false;
     q1 = new Q1(playerId, playerName, server,0);
     this.ClientSize = new System.Drawing.Size(400, 380);
     elementHost.Location = new System.Drawing.Point(15, 40);
     elementHost.Name = "elementHost";
     elementHost.Size = new System.Drawing.Size(400, 320);
     elementHost.TabIndex = 2;
     elementHost.Text = "elementHost";
     elementHost.Child = q1;
     Controls.Add(this.elementHost);
 }