private void question4() { delete_btn.Visible = false; Update_btn.Visible = false; Edit_btn.Visible = false; comboBox1.Visible = true; label1.Text = "Choose Player:"; label1.Visible = true; allPlayers = server.wpfGetAllPlayers(); comboBox1.Items.Clear(); foreach (var item in allPlayers) { comboBox1.Items.Add(item.playerId + " || " + item.firstName); } q4 = new Q2(server, 1); 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 = q4; Controls.Add(this.elementHost); }
private void question2() { delete_btn.Enabled = false; Update_btn.Enabled = false; Edit_btn.Enabled = false; q2 = new Q2(server,0); this.ClientSize = new System.Drawing.Size(400, 400); elementHost.Location = new System.Drawing.Point(5, 50); elementHost.Name = "elementHost"; elementHost.Size = new System.Drawing.Size(395, 300); elementHost.TabIndex = 2; elementHost.Text = "elementHost"; elementHost.Child = q2; Controls.Add(this.elementHost); }