| Цитата(NightmareZ @ 9.5.2009, 15:49) | | Тела методов покажи. |
| Код | private string WriteNewSMS(Microsoft.WindowsMobile.PocketOutlook.SmsMessage sms) { XElement XSMSHistory = XElement.Load(filenameSMSHistory);
string GUID = System.Guid.NewGuid().ToString();
XSMSHistory.Add(new XElement("SMS", new XAttribute("GUID", GUID), new XAttribute("From", sms.From.Address), new XAttribute("SendDateTime", sms.LastModified), new XAttribute("ReceivedDateTime", sms.Received), new XAttribute("Text", sms.Body) )); XSMSHistory.Save(filenameSMSHistory); return GUID; }
private string WriteNewSMS(InTheHand.WindowsMobile.PocketOutlook.SmsMessage sms) { XElement XSMSHistory = XElement.Load(filenameSMSHistory);
string GUID = System.Guid.NewGuid().ToString();
XSMSHistory.Add(new XElement("SMS", new XAttribute("GUID", GUID), new XAttribute("From", sms.From.Address), new XAttribute("SendDateTime", sms.LastModified), new XAttribute("ReceivedDateTime", sms.Received), new XAttribute("Text", sms.Body) )); XSMSHistory.Save(filenameSMSHistory); return GUID; }
|
|