Retail_manager/RMWPFUserInterface/ViewModels/StatusInfoViewModel.cs
s459315 7c40488938 Add dialog box and check permissions
Checks if user if authorized if not message box poppes up
2022-08-06 17:04:09 +02:00

29 lines
672 B
C#

using Caliburn.Micro;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace RMWPFUserInterface.ViewModels
{
public class StatusInfoViewModel : Screen
{
public string Header { get; private set; }
public string Message { get; private set; }
public void UpdateMessage(string header, string message)
{
Header = header;
Message = message;
NotifyOfPropertyChange(() => Header);
NotifyOfPropertyChange(() => Message);
}
public void Close()
{
TryCloseAsync();
}
}
}