public static Location[] GetLocationsForStructure(AnnotateStructuresClient proxy, long ID) { return proxy.GetLocationsForStructure(ID); }
public static SortedDictionary<long, List<StructureLink>> GetLinkedStructures(AnnotateStructuresClient proxy) { StructureLink[] LinkedStructures = proxy.GetLinkedStructures(); return GetLinkedStructures(LinkedStructures); }
public static AnnotateStructuresClient CreateStructureClient() { AnnotateStructuresClient proxy = new AnnotateStructuresClient(); proxy.Endpoint.Address = new System.ServiceModel.EndpointAddress(State.serviceDictionary[State.selectedService]); proxy.ClientCredentials.UserName.UserName = userCredentials.UserName; proxy.ClientCredentials.UserName.Password = userCredentials.Password; // if (proxy.State != System.ServiceModel.CommunicationState.Opened) // proxy.Open(); return proxy; }