예제 #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);
 }
예제 #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;
 }
예제 #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);
 }
예제 #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;
 }