You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
719 B
28 lines
719 B
using Avalonia.Controls; |
|
using Avalonia.Input; |
|
using Avalonia.Markup.Xaml; |
|
using StabilityMatrix.Avalonia.ViewModels.Dialogs; |
|
using StabilityMatrix.Core.Attributes; |
|
using StabilityMatrix.Core.Processes; |
|
|
|
namespace StabilityMatrix.Avalonia.Views.Dialogs; |
|
|
|
[Transient] |
|
public partial class DownloadResourceDialog : UserControl |
|
{ |
|
public DownloadResourceDialog() |
|
{ |
|
InitializeComponent(); |
|
} |
|
|
|
private void InitializeComponent() |
|
{ |
|
AvaloniaXamlLoader.Load(this); |
|
} |
|
|
|
private void LicenseButton_OnTapped(object? sender, TappedEventArgs e) |
|
{ |
|
var url = ((DownloadResourceViewModel)DataContext!).Resource.LicenseUrl; |
|
ProcessRunner.OpenUrl(url!.ToString()); |
|
} |
|
}
|
|
|