Inheritance: BaseRecord
示例#1
0
        private static void CreateUnknown(PwGroup groupAddTo, PwDatabase pwStorage, UnknownRecord record)
        {
            PwEntry entry = new PwEntry(true, true)
            {
                IconId = PwIcon.Warning
            };

            entry.CreationTime         = DateTimeExt.FromUnixTimeStamp(record.createdAt);
            entry.LastModificationTime = DateTimeExt.FromUnixTimeStamp(record.updatedAt);
            entry.Strings.Set(PwDefs.TitleField, new ProtectedString(pwStorage.MemoryProtection.ProtectTitle, StringExt.GetValueOrEmpty(record.title)));
            entry.Strings.Set(PwDefs.UrlField, new ProtectedString(pwStorage.MemoryProtection.ProtectUrl, StringExt.GetValueOrEmpty(record.location)));
            entry.Strings.Set(PwDefs.NotesField,
                              new ProtectedString(pwStorage.MemoryProtection.ProtectNotes, StringExt.GetValueOrEmpty(record.typeName)));
        }
示例#2
0
		private static void CreateUnknown(PwGroup groupAddTo, PwDatabase pwStorage, UnknownRecord record)
		{
			PwEntry entry = new PwEntry(true, true) { IconId = PwIcon.Warning };
			entry.CreationTime = DateTimeExt.FromUnixTimeStamp(record.createdAt);
			entry.LastModificationTime = DateTimeExt.FromUnixTimeStamp(record.updatedAt);
			entry.Strings.Set(PwDefs.TitleField, new ProtectedString(pwStorage.MemoryProtection.ProtectTitle, StringExt.GetValueOrEmpty(record.title)));
			entry.Strings.Set(PwDefs.UrlField, new ProtectedString(pwStorage.MemoryProtection.ProtectUrl, StringExt.GetValueOrEmpty(record.location)));
			entry.Strings.Set(PwDefs.NotesField,
				new ProtectedString(pwStorage.MemoryProtection.ProtectNotes, StringExt.GetValueOrEmpty(record.typeName)));
		}