private void button1_Click(object sender, EventArgs e) { Team t = new Team(); t.Name = txtName.Text; t.Description = txtDescription.Text; SocketClient.AddTeam(t.DataRow.Table); }