Example #1
0
 public DepartmentRowChangeEvent(DepartmentRow row, global::System.Data.DataRowAction action)
 {
     this.eventRow = row;
     this.eventAction = action;
 }
Example #2
0
 public void RemoveDepartmentRow(DepartmentRow row)
 {
     this.Rows.Remove(row);
 }
Example #3
0
 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;
 }
Example #4
0
 public void AddDepartmentRow(DepartmentRow row)
 {
     this.Rows.Add(row);
 }
Example #5
0
 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;
 }
Example #6
0
 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;
 }