/// <summary> /// Matches a string to each value of DataTypeEntry. /// </summary> /// <param name="dataType">The enum value which needs a string representation.</param> /// <returns></returns> public static string Format(EntryDataType dataType) { switch (dataType) { case EntryDataType.Empty: return "Empty string"; case EntryDataType.Notes: return "The Notes value of the entry from KeePass database."; case EntryDataType.Password: return "The Password value of the entry from KeePass database."; case EntryDataType.Title: return "The Title value of the entry from KeePass database."; case EntryDataType.URL: return "The URL value of the entry from KeePass database."; case EntryDataType.UserName: return "The Username value of the entry from KeePass database."; } return ""; }
public static IFilterEntry GenerateEntryOfType(EntryDataType type) { switch (type) { case EntryDataType.Comment: return(new FilterComment()); case EntryDataType.Filler: return(new FilterFiller()); case EntryDataType.Rule: return(new FilterRule()); } throw new Exception("invalid data type"); }
/// <summary> /// Matches a string to each value of DataTypeEntry. /// </summary> /// <param name="dataType">The enum value which needs a string representation.</param> /// <returns></returns> public static string Format(EntryDataType dataType) { switch (dataType) { case EntryDataType.Empty: return("Empty string"); case EntryDataType.Notes: return("The Notes value of the entry from KeePass database."); case EntryDataType.Password: return("The Password value of the entry from KeePass database."); case EntryDataType.Title: return("The Title value of the entry from KeePass database."); case EntryDataType.URL: return("The URL value of the entry from KeePass database."); case EntryDataType.UserName: return("The Username value of the entry from KeePass database."); } return(""); }
public static string GetValue(PwEntry entry, EntryDataType key) { return entry.Strings.Get(key.ToString()).ReadString(); }
private protected EntryChange(LogEntryChangeKey @event, EntryDataType dataType) { DataType = dataType; ChangeType = @event; }
public static string GetValue(PwEntry entry, EntryDataType key) { return(entry.Strings.Get(key.ToString()).ReadString()); }
/// <summary> /// Creates a DataElement with a Static Data. "Reference" /// </summary> /// <param name="staticData">The field'n name from KeePass database, enum.</param> public DataElement(EntryDataType staticData) { StaticData = staticData; }
/// <summary> /// Create Dataelement with a Function content. /// </summary> /// <param name="function">The "function" itself wich implements FunctionAbstract.</param> public DataElement(FunctionAbstract function) { m_Function = function; m_StaticData = EntryDataType.Empty; }