mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Move OS specific command implementation to OS specific device class.
This commit is contained in:
@@ -250,10 +250,11 @@ public sealed class MainWindowViewModel : ViewModelBase
|
||||
{
|
||||
var dev = Device.Create(deviceModel.Path);
|
||||
|
||||
if(dev.IsRemote)
|
||||
Statistics.AddRemote(dev.RemoteApplication, dev.RemoteVersion,
|
||||
dev.RemoteOperatingSystem, dev.RemoteOperatingSystemVersion,
|
||||
dev.RemoteArchitecture);
|
||||
if(dev is Devices.Remote.Device remoteDev)
|
||||
Statistics.AddRemote(remoteDev.RemoteApplication, remoteDev.RemoteVersion,
|
||||
remoteDev.RemoteOperatingSystem,
|
||||
remoteDev.RemoteOperatingSystemVersion,
|
||||
remoteDev.RemoteArchitecture);
|
||||
|
||||
if(dev.Error)
|
||||
{
|
||||
@@ -789,9 +790,10 @@ public sealed class MainWindowViewModel : ViewModelBase
|
||||
{
|
||||
var dev = Device.Create(device.Path);
|
||||
|
||||
if(dev.IsRemote)
|
||||
Statistics.AddRemote(dev.RemoteApplication, dev.RemoteVersion, dev.RemoteOperatingSystem,
|
||||
dev.RemoteOperatingSystemVersion, dev.RemoteArchitecture);
|
||||
if(dev is Devices.Remote.Device remoteDev)
|
||||
Statistics.AddRemote(remoteDev.RemoteApplication, remoteDev.RemoteVersion,
|
||||
remoteDev.RemoteOperatingSystem, remoteDev.RemoteOperatingSystemVersion,
|
||||
remoteDev.RemoteArchitecture);
|
||||
|
||||
switch(dev.Type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user