private void btnUser_Click(object sender, EventArgs e) { TestManager tm = new TestManager(); OEEntity.User us = new OEEntity.User(); us.name = txtLName.Text; us.login = txtLName.Text; us.password = txtPass.Text; tm.AddUser(us); MessageBox.Show("User Added"); }