예제 #1
0
        public MainViewModel()
        {
            address = new Address();
            location = new Location();
            system = new SystemInfo();

            selectedItems = new List<string>();
            IsEnabled = true;
        }
예제 #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();
 }