public void AddMessage(DirectMessage dm) { var divm = new DirectMessageItemViewModel(dm); MergedMessage.Add(divm); if (dm.Recipient.ScreenName == TargetUserScreenName) { divm.IsSent = true; MyMessage.Add(divm); } else { divm.IsReceived = true; ReceiviedMessage.Add(divm); } }
public void AddMessage(DirectMessage dm) { var divm = new DirectMessageItemViewModel(dm); MergedMessage.Add(divm); if (dm.Recipient.ScreenName == TargetUserScreenName) { divm.IsSent = true; MyMessage.Add(divm); } else { divm.IsReceived = true; ReceiviedMessage.Add(divm); } }