| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using GalaSoft.MvvmLight;
- using Muchinfo.MTPClient.Data.Model;
- namespace Muchinfo.MTPClient.Account.ViewModels
- {
- public class RiskViewModel : ViewModelBase
- {
- private Announcement _riskMessage;
- public RiskViewModel(Announcement riskMessage)
- {
- _riskMessage = riskMessage;
- }
- public Announcement RiskMessage
- {
- get
- {
- return _riskMessage;
- }
- set
- {
- Set(() => RiskMessage, ref _riskMessage, value);
- }
- }
- private int _riskLevel;
- public int RiskLevel
- {
- get
- {
- return RiskMessage.RiskLevel;
- }
- set
- {
- Set(() => RiskLevel, ref _riskLevel, value);
- }
- }
- private string _riskContent;
- public string RiskContent
- {
- get
- {
- return RiskMessage.Content; ;
- }
- set
- {
- Set(() => RiskContent, ref _riskContent, value);
- }
- }
- }
- }
|