Skip to content

Commit 208970d

Browse files
committed
Connect external via mstsc.exe added
1 parent 9fbd202 commit 208970d

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

Source/NETworkManager/Resources/Localization/Resources.de-DE.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@
362362
<system:String x:Key="String_Mode">Modus</system:String>
363363
<system:String x:Key="String_OpenProject">Projekt öffnen</system:String>
364364
<system:String x:Key="String_OpenLicense">Lizenz öffnen</system:String>
365+
<system:String x:Key="String_ConnectExternal">Extern verbinden</system:String>
365366

366367
<!-- Documentation title -->
367368
<system:String x:Key="String_DocumentationTitle_00001">Wie installiere ich RDP 8.1 unter Windows 7 / Server 2008 R2?</system:String>

Source/NETworkManager/Resources/Localization/Resources.en-US.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@
362362
<system:String x:Key="String_Mode">Mode</system:String>
363363
<system:String x:Key="String_OpenProject">Open project</system:String>
364364
<system:String x:Key="String_OpenLicense">Open license</system:String>
365+
<system:String x:Key="String_ConnectExternal">Connect external</system:String>
365366

366367
<!-- Documentation title -->
367368
<system:String x:Key="String_DocumentationTitle_00001">How to install RDP 8.1 on Windows 7/Server 2008 R2</system:String>

Source/NETworkManager/ViewModels/Applications/RemoteDesktopViewModel.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,16 @@ private async void ConnectSessionAsAction()
423423
await dialogCoordinator.ShowMetroDialogAsync(this, customDialog);
424424
}
425425

426+
public ICommand ConnectSessionExternalCommand
427+
{
428+
get { return new RelayCommand(p => ConnectSessionExternalAction()); }
429+
}
430+
431+
private void ConnectSessionExternalAction()
432+
{
433+
Process.Start("mstsc.exe", string.Format("/V:{0}", SelectedSession.Host));
434+
}
435+
426436
public ICommand EditSessionCommand
427437
{
428438
get { return new RelayCommand(p => EditSessionAction()); }

Source/NETworkManager/Views/Applications/RemoteDesktopView.xaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@
9797
</Rectangle>
9898
</MenuItem.Icon>
9999
</MenuItem>
100+
<MenuItem Header="{DynamicResource String_ConnectExternal}" Command="{Binding ConnectSessionExternalCommand}">
101+
<MenuItem.Icon>
102+
<Rectangle Width="16" Height="16" Fill="{DynamicResource BlackColorBrush}">
103+
<Rectangle.OpacityMask>
104+
<VisualBrush Stretch="Uniform" Visual="{IconPacks:Octicons Kind=DeviceDesktop}" />
105+
</Rectangle.OpacityMask>
106+
</Rectangle>
107+
</MenuItem.Icon>
108+
</MenuItem>
100109
<MenuItem Header="{DynamicResource String_Edit}" Command="{Binding EditSessionCommand}">
101110
<MenuItem.Icon>
102111
<Rectangle Width="16" Height="16" Fill="{DynamicResource BlackColorBrush}">

0 commit comments

Comments
 (0)