Exemplo n.º 1
0
        public void OnNavigatedTo(NavigationContext navigationContext)
        {
            GetData();
            DeviceParameter param  = (DeviceParameter)navigationContext.Parameters["request"];
            DeviceViewItem  device = param.Device;

            _mode = param.Mode;
            if (_mode.Equals(Mode.Add))
            {
                Description  = string.Empty;
                Model        = string.Empty;
                SerialNumber = string.Empty;
                ImagePath    = string.Empty;
            }
            else
            {
                ImagePath         = string.Empty;
                Description       = device.Description;
                Model             = device.Model;
                SerialNumber      = device.SerialNumber;
                SelectedBrand     = device.Brand;
                SelectedCategory  = device.Category;
                _selectedDeviceId = device.GetId();
            }
        }
Exemplo n.º 2
0
 public DeviceParameter(Mode mode, DeviceViewItem device)
 {
     Mode   = mode;
     Device = device;
 }