static public CopyPasteOutlookData ConvertOutlookDataToCopyPasteOutlookData(OutlookData outlookDataObject, CopyPasteOperations owner) { return(new CopyPasteOutlookData() { UniqueID = ++owner.Counter, From = outlookDataObject.From, HasAttachment = outlookDataObject.HasAttachment, HoursActive = outlookDataObject.HoursActive, OID = outlookDataObject.OID, Sent = outlookDataObject.Sent }); }
public static OutlookData CreateNewObject() { OutlookData obj = new OutlookData(); obj.Subject = GetSubject(); obj.From = GetFrom(); obj.Sent = GetSentDate(); obj.HasAttachment = GetHasAttachment(); obj.Size = GetSize(obj.HasAttachment); obj.Priority = GetPriority(); obj.UserId = GetFromId(); obj.HoursActive = GetHoursActive(); return(obj); }
public static OutlookData CreateOutlookData(int id) { OutlookData data = new OutlookData(); data.OID = id; data.From = GetFrom(); data.UserId = GetFromId(); data.Sent = GetSentDate(); data.HasAttachment = GetHasAttachment(); data.Priority = GetPriority(); data.HoursActive = GetHoursActive(); data.Subject = GetSubject(); return(data); }