46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using BS.Shared;
|
|
using BS.Shared.DataContracts;
|
|
using System;
|
|
|
|
namespace BeWo.ViewModel
|
|
{
|
|
public class ChatBewoMessageSyncVM : AbstractDCMapperVM<ChatBewoMessageSyncDC>
|
|
{
|
|
public static string PropertyName_MessageSyncText = "MessageSyncText";
|
|
|
|
private string _MessageSyncText;
|
|
|
|
public ChatBewoMessageSyncVM(ChatBewoMessageSyncDC pDC)
|
|
: base(pDC, true)
|
|
{
|
|
}
|
|
|
|
public string MessageSyncText
|
|
{
|
|
get { return this._MessageSyncText; }
|
|
|
|
set
|
|
{
|
|
if (this.AreDifferent(this._MessageSyncText, value))
|
|
{
|
|
this._MessageSyncText = value;
|
|
this.StoreDirtyInformation(this.AreDifferent(this.DataContract.MessageSyncText, value), PropertyName_MessageSyncText);
|
|
this.FirePropertyChanged(PropertyName_MessageSyncText);
|
|
}
|
|
}
|
|
}
|
|
|
|
protected override void InitByDataContract(ChatBewoMessageSyncDC pDataContract)
|
|
{
|
|
this._MessageSyncText = pDataContract.MessageSyncText;
|
|
|
|
}
|
|
|
|
protected override ChatBewoMessageSyncDC MapToDataContract(ChatBewoMessageSyncDC pDataContract, bool doCommit)
|
|
{
|
|
pDataContract.MessageSyncText = _MessageSyncText;
|
|
|
|
return pDataContract;
|
|
}
|
|
}
|
|
} |