1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-12-01 17:46:05 +03:00
ProxySU/ProxySuper.Core/ViewModels/SecondViewModel.cs

31 lines
735 B
C#
Raw Normal View History

2021-05-08 13:52:59 +03:00
using MvvmCross.Commands;
using MvvmCross.Navigation;
using MvvmCross.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProxySuper.Core.ViewModels
{
public class SecondViewModel : MvxViewModel
{
private readonly IMvxNavigationService _navigationService;
public SecondViewModel(IMvxNavigationService navigationService)
{
_navigationService = navigationService;
}
public string Message { get; set; } = "Hello world!";
public IMvxCommand BackCommand => new MvxCommand(Back);
public void Back()
{
_navigationService.Close(this);
}
}
}