コード例 #1
0
        /// <summary>
        /// Creates the Location to be set for the Aid Request
        /// </summary>
        /// <param name="add">Address object</param>
        /// <param name="cross">(Optional) AddressCrossStreet Object</param>
        /// <param name="grid">(Optional) AddressGrid</param>
        /// <param name="mgrs">(Optional) MGRS Coordinate</param>
        /// <param name="utm">(Optional) UTM Coordinate</param>
        /// <param name="ar">(Optional) Area Region</param>
        /// <param name="intersect">(Optional) Intersection Boolean</param>
        public void SetLocation(Address add, AddressCrossStreet cross = null, AddressGrid grid = null, MGRSCoordinate mgrs = null, UTMCoordinate utm = null, AreaRegion ar = null, bool?intersect = null)
        {
            LocationExtension e = null;

            if (intersect != null)
            {
                e = new LocationExtension(add, cross, grid, mgrs, utm, ar, (bool)intersect);
            }
            else
            {
                e = new LocationExtension(add, cross, grid, mgrs, utm, ar, false);
            }

            SetLocation(e);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the AidRequested class
 /// </summary>
 /// <param name="resources">List of resources being requested</param>
 /// <param name="loc">(Optional) The Location Extension</param>
 public AidRequested(List <RequestResourceKind> resources, LocationExtension loc = null)
 {
     Resources = (resources != null) ? resources : new List <RequestResourceKind>();
     Location  = loc;
 }
コード例 #3
0
 /// <summary>
 /// Sets the Location for this Aid Request
 /// </summary>
 /// <param name="le">The Location Extension</param>
 public void SetLocation(LocationExtension le)
 {
     Location = le;
 }