Beispiel #1
0
 private void OnRelatedIssuesSync(object sender, Microsoft.SharePoint.Linq.AssociationChangedEventArgs <Issues> e)
 {
     if ((Microsoft.SharePoint.Linq.AssociationChangedState.Added == e.State))
     {
         e.Item.Issues0.Add(this);
     }
     else
     {
         e.Item.Issues0.Remove(this);
     }
 }
 private void OnCategorySync(object sender, Microsoft.SharePoint.Linq.AssociationChangedEventArgs <Category> e)
 {
     if ((Microsoft.SharePoint.Linq.AssociationChangedState.Added == e.State))
     {
         e.Item.Machine.Add(this);
     }
     else
     {
         e.Item.Machine.Remove(this);
     }
 }
 private void OnMachineSync(object sender, Microsoft.SharePoint.Linq.AssociationChangedEventArgs <Machine> e)
 {
     if ((Microsoft.SharePoint.Linq.AssociationChangedState.Added == e.State))
     {
         e.Item.Manufacturer = this;
     }
     else
     {
         e.Item.Manufacturer = null;
     }
 }
 private void OnMachineDepartmentSync(object sender, Microsoft.SharePoint.Linq.AssociationChangedEventArgs <MachineDepartment> e)
 {
     if ((Microsoft.SharePoint.Linq.AssociationChangedState.Added == e.State))
     {
         e.Item.Department = this;
     }
     else
     {
         e.Item.Department = null;
     }
 }
 private void OnPartSync(object sender, Microsoft.SharePoint.Linq.AssociationChangedEventArgs <Part> e)
 {
     if ((Microsoft.SharePoint.Linq.AssociationChangedState.Added == e.State))
     {
         e.Item.InventoryLocation.Add(this);
     }
     else
     {
         e.Item.InventoryLocation.Remove(this);
     }
 }
 private void OnPartSupplierSync(object sender, Microsoft.SharePoint.Linq.AssociationChangedEventArgs <PartSupplier> e)
 {
     if ((Microsoft.SharePoint.Linq.AssociationChangedState.Added == e.State))
     {
         e.Item.Supplier = this;
     }
     else
     {
         e.Item.Supplier = null;
     }
 }
 private void OnInventoryLocationSync(object sender, Microsoft.SharePoint.Linq.AssociationChangedEventArgs <InventoryLocation> e)
 {
     if ((Microsoft.SharePoint.Linq.AssociationChangedState.Added == e.State))
     {
         e.Item.Part = this;
     }
     else
     {
         e.Item.Part = null;
     }
 }
 private void OnSupplierSync(object sender, Microsoft.SharePoint.Linq.AssociationChangedEventArgs <Supplier> e)
 {
     if ((Microsoft.SharePoint.Linq.AssociationChangedState.Added == e.State))
     {
         e.Item.PartSupplier.Add(this);
     }
     else
     {
         e.Item.PartSupplier.Remove(this);
     }
 }
 private void OnParentSync(object sender, Microsoft.SharePoint.Linq.AssociationChangedEventArgs <SiteMapNavigationEntry> e)
 {
     if ((Microsoft.SharePoint.Linq.AssociationChangedState.Added == e.State))
     {
         e.Item.SiteMapNavigationEntry0.Add(this);
     }
     else
     {
         e.Item.SiteMapNavigationEntry0.Remove(this);
     }
 }
 private void OnSiteMapNavigationEntry0Sync(object sender, Microsoft.SharePoint.Linq.AssociationChangedEventArgs <SiteMapNavigationEntry> e)
 {
     if ((Microsoft.SharePoint.Linq.AssociationChangedState.Added == e.State))
     {
         e.Item.Parent = this;
     }
     else
     {
         e.Item.Parent = null;
     }
 }
 private void OnPartSync(object sender, Microsoft.SharePoint.Linq.AssociationChangedEventArgs <Part> e)
 {
 }
 private void OnMachineSync(object sender, Microsoft.SharePoint.Linq.AssociationChangedEventArgs <Machine> e)
 {
 }