Retail_manager/RMWPFUserInterface/ViewModels/StatusInfoViewModel.cs

29 lines
672 B
C#
Raw Normal View History

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();
}
}
}