public DepartmentRowChangeEvent(DepartmentRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; }
public void RemoveDepartmentRow(DepartmentRow row) { this.Rows.Remove(row); }
public DepartmentRow AddDepartmentRow(string Name, DepartmentRow parentDepartmentRowByDepartment_Department) { DepartmentRow rowDepartmentRow = ((DepartmentRow)(this.NewRow())); object[] columnValuesArray = new object[] { Name, null, null}; if ((parentDepartmentRowByDepartment_Department != null)) { columnValuesArray[2] = parentDepartmentRowByDepartment_Department[1]; } rowDepartmentRow.ItemArray = columnValuesArray; this.Rows.Add(rowDepartmentRow); return rowDepartmentRow; }
public void AddDepartmentRow(DepartmentRow row) { this.Rows.Add(row); }
public ManagerRow AddManagerRow(string Name, string Address, double Salary, DepartmentRow parentDepartmentRowByDepartment_Manager) { ManagerRow rowManagerRow = ((ManagerRow)(this.NewRow())); object[] columnValuesArray = new object[] { Name, Address, Salary, null}; if ((parentDepartmentRowByDepartment_Manager != null)) { columnValuesArray[3] = parentDepartmentRowByDepartment_Manager[1]; } rowManagerRow.ItemArray = columnValuesArray; this.Rows.Add(rowManagerRow); return rowManagerRow; }
public EmployeeRow AddEmployeeRow(string Name, string Address, double Salary, DepartmentRow parentDepartmentRowByDepartment_Employee) { EmployeeRow rowEmployeeRow = ((EmployeeRow)(this.NewRow())); object[] columnValuesArray = new object[] { Name, Address, Salary, null}; if ((parentDepartmentRowByDepartment_Employee != null)) { columnValuesArray[3] = parentDepartmentRowByDepartment_Employee[1]; } rowEmployeeRow.ItemArray = columnValuesArray; this.Rows.Add(rowEmployeeRow); return rowEmployeeRow; }