/// <summary> /// Calls <see cref="IFTPComponent.LinkComponent"/> on all other /// FTP components in the container of the given site. /// </summary> /// <param name="site">Site in the container whose FTP components are to be linked.</param> /// <param name="component">New components added to the containiner.</param> public static void Link(ISite site, IFTPComponent component) { if (site==null || !site.DesignMode || site.Container == null) return; foreach (object c in site.Container.Components) if (c!=component && c is IFTPComponent) ((IFTPComponent)c).LinkComponent(component); }
public static void Link(ISite site, IFTPComponent component) { if (((site != null) && site.DesignMode) && (site.Container != null)) { foreach (object obj2 in site.Container.Components) { if ((obj2 != component) && (obj2 is IFTPComponent)) { ((IFTPComponent)obj2).LinkComponent(component); } } } }
public static void Link(ISite site, IFTPComponent component) { if (((site != null) && site.DesignMode) && (site.Container != null)) { foreach (object obj2 in site.Container.Components) { if ((obj2 != component) && (obj2 is IFTPComponent)) { ((IFTPComponent) obj2).LinkComponent(component); } } } }
/// <summary> /// Calls <see cref="IFTPComponent.LinkComponent"/> on all other /// FTP components in the container of the given site. /// </summary> /// <param name="site">Site in the container whose FTP components are to be linked.</param> /// <param name="component">New components added to the containiner.</param> public static void Link(ISite site, IFTPComponent component) { if (site == null || !site.DesignMode || site.Container == null) { return; } foreach (object c in site.Container.Components) { if (c != component && c is IFTPComponent) { ((IFTPComponent)c).LinkComponent(component); } } }
public void LinkComponent(IFTPComponent component) { }