public DeviceConnectedEventArgs(UPnPAVDevice device) { Device = device; }
private void RequestView(object item, CancellationToken cancellationToken) { if (item != null) { if (!(item is AVItem) && !_isInitialRequest) PageManager.Push(Page.ePageType.Unknown); _isInitialRequest = false; if (item is AVItemBase && !(item is AVItemDevice)) { var avib = (IUPnPItem)item; CurrentPath = avib.Path; CurrentPage.PageTitle = avib.Title; CurrentPage.Device = avib.Device; if (item is AVItemCollection) { CurrentPage.Path = avib.Path; } Parent = (IUPnPItem)item; } var device = item as UPnPDevice; if (device != null) { CurrentPath = device.FriendlyName; CurrentPage.PageTitle = device.FriendlyName; CurrentPage.Device = device; CurrentPage.Path = device.FriendlyName; Parent = new UPnPAVDevice(device); } } OnViewRequested(item, CurrentPage.Id, cancellationToken); OnPropertyChanged("ActivePageType"); }