Ejemplo n.º 1
0
        public MainViewModel()
        {
            address = new Address();
            location = new Location();
            system = new SystemInfo();

            selectedItems = new List<string>();
            IsEnabled = true;
        }
Ejemplo n.º 2
0
 /*
  *  Using the get accessor below we will be able to read the
  *  IP Address and assign it to the data binding of the
  *  TextBlock. Since we are not using a set accessor this will
  *  make the property Read-Only. Also since this property is read only,
  *  we have to assign the IP address to the fields in this class.
  */
 public Address()
 {
     sys = new SystemInfo();
     _ipAddress = getCurrentIPAddress();
     _addressList = getMacAddresses();
 }