Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GeoAddressViewModel"/> class.
 /// </summary>
 /// <param name="address">The address.</param>
 /// <param name="provider">The provider.</param>
 /// <param name="height">The height.</param>
 /// <param name="width">The width.</param>
 public GeoAddressViewModel(Address address, GeoProvider provider, int width, int height)
 {
     Init(new GeoAddress()
     {
         Location = address
     }, provider, width, height);
 }
Example #2
0
 /// <summary>
 /// Inits with the data supplied.
 /// </summary>
 /// <param name="address">The address.</param>
 /// <param name="provider">The provider.</param>
 /// <param name="height">The height.</param>
 /// <param name="width">The width.</param>
 public void Init(GeoAddress address, GeoProvider provider, int width, int height)
 {
     Address  = address;
     Provider = provider;
     Width    = height;
     Height   = width;
 }
Example #3
0
 /// <summary>
 /// Creates a new instance of this class.
 /// </summary>
 /// <param name="address">The address.</param>
 /// <param name="provider">The provider.</param>
 /// <param name="height">The height.</param>
 /// <param name="width">The width.</param>
 public GeoAddressViewModel(GeoAddress address, GeoProvider provider, int width, int height)
 {
     Init(address, provider, width, height);
 }
Example #4
0
 /// <summary>
 /// Inits the current geoprovider with the one specified.
 /// </summary>
 /// <param name="provider">The provider.</param>
 public static void Init(GeoProvider provider)
 {
     _current = provider;
 }