31 lines
633 B
C#
31 lines
633 B
C#
using Common.Library;
|
|
using GreadyPoang.Services;
|
|
|
|
namespace GreadyPoang.ViewModelLayer;
|
|
|
|
public class MainPageViewModel : ViewModelBase
|
|
{
|
|
private readonly AppShellViewModel _appShell;
|
|
private readonly IObjectMessageService _messageService;
|
|
|
|
public MainPageViewModel(
|
|
AppShellViewModel appShell,
|
|
IObjectMessageService messageService
|
|
) : base()
|
|
{
|
|
|
|
_appShell = appShell;
|
|
_messageService = messageService;
|
|
|
|
}
|
|
|
|
public void InitMessage()
|
|
{
|
|
if (_appShell.RoundRunningVisible == false)
|
|
{
|
|
_messageService.Delivered = true;
|
|
}
|
|
}
|
|
|
|
}
|