-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSettingsUserControl.xaml.cs
More file actions
31 lines (28 loc) · 1.01 KB
/
Copy pathSettingsUserControl.xaml.cs
File metadata and controls
31 lines (28 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System.Windows.Controls;
using System.Diagnostics;
using System.Windows.Navigation;
namespace Flow.Launcher.Plugin.RDP {
public partial class SettingsUserControl : UserControl {
private Settings settings;
/// <summary>
/// usercontrol template for settings. right now there are no settings.
/// </summary>
/// <param name="settings"></param>
public SettingsUserControl(Settings settings) {
InitializeComponent();
this.settings = settings;
}
/// <summary>
/// allows the hyperlink to actually open
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e) {
Process process = new Process();
process.StartInfo.FileName = e.Uri.AbsoluteUri;
process.StartInfo.UseShellExecute = true;
process.Start();
e.Handled = true;
}
}
}