1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-22 13:16:09 +03:00
ProxySU/ProxySuper.WPF/Views/HomeView.xaml.cs

35 lines
910 B
C#
Raw Normal View History

2021-05-14 14:07:19 +03:00
using MvvmCross;
using MvvmCross.Navigation;
using MvvmCross.Platforms.Wpf.Views;
using ProxySuper.Core.Models;
using ProxySuper.Core.ViewModels;
using System.Windows;
namespace ProxySuper.WPF.Views
{
/// <summary>
/// HomeView.xaml 的交互逻辑
/// </summary>
public partial class HomeView : MvxWpfView
{
public HomeView()
{
InitializeComponent();
}
private void LaunchGitHubSite(object sender, RoutedEventArgs e)
{
System.Diagnostics.Process.Start("explorer.exe", "https://github.com/proxysu/ProxySU");
}
private void NavToEditor(object sender, RoutedEventArgs e)
{
var navSrv = Mvx.IoCProvider.Resolve<IMvxNavigationService>();
var vm = ViewModel as HomeViewModel;
2021-05-16 04:12:47 +03:00
navSrv.Navigate<XrayEditorViewModel, Record, Record>(vm.Records[0]);
2021-05-14 14:07:19 +03:00
}
}
}