private void btnSave_Click(object sender, EventArgs e) { objLogics = new ClassBL(); if (!(txtEmail.Text == "" && txtName.Text == "")) { objLogics.AddNewEmployee(txtEmail.Text, txtName.Text); } dataGridView1.DataSource = objLogics.LoadEmployee(); dataGridView1.DataMember = "Table_Employee"; }