/// <summary> /// Adds the employee handler. /// </summary> /// <param name="employee">The employee.</param> public void AddEmployeeHandler(EmployeeDetail employee) { if (employee == null) { return; } var row = this.EmployeeDetails.NewRow(); row["Customer ID"] = employee.ContactName; row["Comapny Name"] = employee.CompanyName; row["Contact Name"] = employee.ContactName; row["City"] = employee.City; row["PostalCode"] = employee.PostalCode; row["Country"] = employee.Country; this.EmployeeDetails.Rows.Add(row); }
/// <summary> /// Determines whether this instance [can add employee] the specified employee. /// </summary> /// <param name="employee">The employee.</param> /// <returns> /// <c>true</c> if this instance [can add employee] the specified employee; otherwise, <c>false</c>. /// </returns> bool CanAddEmployee(EmployeeDetail employee) { return(true); }