mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-25 08:19:46 -04:00
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using System.Windows.Controls;
|
|
using WowUp.WPF.Extensions;
|
|
using WowUp.WPF.ViewModels;
|
|
|
|
namespace WowUp.WPF.Views
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for AddonsView.xaml
|
|
/// </summary>
|
|
public partial class AddonsView : UserControl
|
|
{
|
|
private AddonsViewViewModel _viewModel;
|
|
|
|
public AddonsView(AddonsViewViewModel viewModel)
|
|
{
|
|
DataContext = _viewModel = viewModel;
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void RescanButton_Click(object sender, System.Windows.RoutedEventArgs e)
|
|
{
|
|
_viewModel.RescanCommand.Execute(this);
|
|
}
|
|
|
|
private void RefreshButton_Click(object sender, System.Windows.RoutedEventArgs e)
|
|
{
|
|
_viewModel.RefreshCommand.Execute(this);
|
|
}
|
|
|
|
private void UpdateAllButton_Click(object sender, System.Windows.RoutedEventArgs e)
|
|
{
|
|
_viewModel.UpdateAllCommand.Execute(this);
|
|
}
|
|
|
|
private void AddonLink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
|
|
{
|
|
e.Uri.AbsoluteUri.OpenUrlInBrowser();
|
|
e.Handled = true;
|
|
}
|
|
}
|
|
}
|