mirror of
https://github.com/proxysu/ProxySU.git
synced 2024-12-01 17:46:05 +03:00
31 lines
735 B
C#
31 lines
735 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|