-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add printer implementation. Including switch to WinRT.
- Loading branch information
Showing
34 changed files
with
862 additions
and
130 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
REG ADD "HKLM\Software\Policies\Microsoft\Windows NT\DNSClient" /V "EnableMulticast" /D "0" /T REG_DWORD /F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
src/WPF.Airprint.Demo.PrintersModule/ViewModels/DeviceFoundViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
namespace WPF.Airprint.Demo.PrintersModule.ViewModels | ||
{ | ||
using System.Collections.Generic; | ||
using WPF.Airprint.DeviceEnumeration; | ||
using WPF.Airprint.Mvvm; | ||
|
||
public class DeviceFoundViewModel : ViewModelBase | ||
{ | ||
private string _name; | ||
private string _ip; | ||
private string _host; | ||
private string _service; | ||
private readonly DeviceFound _model; | ||
|
||
public DeviceFoundViewModel(DeviceFound model) | ||
{ | ||
Name = model.Name; | ||
IpAddress = model.IpAddress; | ||
HostName = model.HostName; | ||
ServiceName = model.ServiceName; | ||
_model = model; | ||
} | ||
|
||
public DeviceFound Model => _model; | ||
|
||
public string Name | ||
{ | ||
get => _name; | ||
set => SetProperty(ref _name, value); | ||
} | ||
|
||
public string IpAddress | ||
{ | ||
get => _ip; | ||
set => SetProperty(ref _ip, value); | ||
} | ||
|
||
public string HostName | ||
{ | ||
get => _host; | ||
set => SetProperty(ref _host, value); | ||
} | ||
|
||
public string ServiceName | ||
{ | ||
get => _service; | ||
set => SetProperty(ref _service, value); | ||
} | ||
|
||
public IEnumerable<string> Details => _model.Details; | ||
} | ||
} |
Oops, something went wrong.