private void OnCompanySync(object sender, AssociationChangedEventArgs <Company> e) { if ((AssociationChangedState.Added == e.State)) { e.Item.Branches.Add(this); } else { e.Item.Branches.Remove(this); } }
private void OnDepartmentSync(object sender, AssociationChangedEventArgs <Department> e) { if ((AssociationChangedState.Added == e.State)) { e.Item.Employees.Add(this); } else { e.Item.Employees.Remove(this); } }
private void OnManagerSync(object sender, AssociationChangedEventArgs <Employee> e) { if ((AssociationChangedState.Added == e.State)) { e.Item.Managers.Add(this); } else { e.Item.Managers.Remove(this); } }
private void OnBranchesSync(object sender, AssociationChangedEventArgs <Branch> e) { e.Item.Company = (AssociationChangedState.Added == e.State) ? this : null; }
private void OnManagerSync(object sender, AssociationChangedEventArgs<Employee> e) { if ((AssociationChangedState.Added == e.State)) { e.Item.Managers.Add(this); } else { e.Item.Managers.Remove(this); } }
private void OnManagersSync(object sender, AssociationChangedEventArgs<Employee> e) { e.Item.Manager = (AssociationChangedState.Added == e.State) ? this : null; }
private void OnDepartmentSync(object sender, AssociationChangedEventArgs<Department> e) { if ((AssociationChangedState.Added == e.State)) { e.Item.Employees.Add(this); } else { e.Item.Employees.Remove(this); } }
private void OnDepartmentsSync(object sender, AssociationChangedEventArgs<Department> e) { //e.Item.HeadOf = (AssociationChangedState.Added == e.State) ? this : null; }
private void OnBranchesSync(object sender, AssociationChangedEventArgs<Branch> e) { e.Item.Company = (AssociationChangedState.Added == e.State) ? this : null; }
private void OnCompanySync(object sender, AssociationChangedEventArgs<Company> e) { if ((AssociationChangedState.Added == e.State)) { e.Item.Branches.Add(this); } else { e.Item.Branches.Remove(this); } }
private void OnDepartmentsSync(object sender, AssociationChangedEventArgs <Department> e) { //e.Item.HeadOf = (AssociationChangedState.Added == e.State) ? this : null; }
private void OnManagersSync(object sender, AssociationChangedEventArgs <Employee> e) { e.Item.Manager = (AssociationChangedState.Added == e.State) ? this : null; }