コード例 #1
0
 private void OnCompanySync(object sender, AssociationChangedEventArgs <Company> e)
 {
     if ((AssociationChangedState.Added == e.State))
     {
         e.Item.Branches.Add(this);
     }
     else
     {
         e.Item.Branches.Remove(this);
     }
 }
コード例 #2
0
 private void OnDepartmentSync(object sender, AssociationChangedEventArgs <Department> e)
 {
     if ((AssociationChangedState.Added == e.State))
     {
         e.Item.Employees.Add(this);
     }
     else
     {
         e.Item.Employees.Remove(this);
     }
 }
コード例 #3
0
 private void OnManagerSync(object sender, AssociationChangedEventArgs <Employee> e)
 {
     if ((AssociationChangedState.Added == e.State))
     {
         e.Item.Managers.Add(this);
     }
     else
     {
         e.Item.Managers.Remove(this);
     }
 }
コード例 #4
0
 private void OnBranchesSync(object sender, AssociationChangedEventArgs <Branch> e)
 {
     e.Item.Company = (AssociationChangedState.Added == e.State) ? this : null;
 }
コード例 #5
0
 private void OnManagerSync(object sender, AssociationChangedEventArgs<Employee> e)
 {
     if ((AssociationChangedState.Added == e.State))
     {
         e.Item.Managers.Add(this);
     }
     else
     {
         e.Item.Managers.Remove(this);
     }
 }
コード例 #6
0
 private void OnManagersSync(object sender, AssociationChangedEventArgs<Employee> e)
 {
     e.Item.Manager = (AssociationChangedState.Added == e.State) ? this : null;
 }
コード例 #7
0
 private void OnDepartmentSync(object sender, AssociationChangedEventArgs<Department> e)
 {
     if ((AssociationChangedState.Added == e.State))
     {
         e.Item.Employees.Add(this);
     }
     else
     {
         e.Item.Employees.Remove(this);
     }
 }
コード例 #8
0
 private void OnDepartmentsSync(object sender, AssociationChangedEventArgs<Department> e)
 {
     //e.Item.HeadOf = (AssociationChangedState.Added == e.State) ? this : null;
 }
コード例 #9
0
 private void OnBranchesSync(object sender, AssociationChangedEventArgs<Branch> e)
 {
     e.Item.Company = (AssociationChangedState.Added == e.State) ? this : null;
 }
コード例 #10
0
 private void OnCompanySync(object sender, AssociationChangedEventArgs<Company> e)
 {
     if ((AssociationChangedState.Added == e.State))
     {
         e.Item.Branches.Add(this);
     }
     else
     {
         e.Item.Branches.Remove(this);
     }
 }
コード例 #11
0
 private void OnDepartmentsSync(object sender, AssociationChangedEventArgs <Department> e)
 {
     //e.Item.HeadOf = (AssociationChangedState.Added == e.State) ? this : null;
 }
コード例 #12
0
 private void OnManagersSync(object sender, AssociationChangedEventArgs <Employee> e)
 {
     e.Item.Manager = (AssociationChangedState.Added == e.State) ? this : null;
 }