public static PwGroup FindOrCreateGroupWithAttribute(this PwDatabase database, KeeShare.AttributeFlags attribute, string name, PwGroup parent, PwIcon icon = PwIcon.Folder) { PwGroup group = database.FindOrCreateGroupWithAttribute(attribute, name, icon); if (group.ParentGroup != parent) { group.MoveToParent(parent); } return(group); }
/// <summary> /// references the group whre you can organize your user entries in groups /// so it will be easier to share passwords through a whole group of users /// </summary> public static PwGroup GetGroupsGroup(this PwDatabase database) { Debug.Assert(database != null); return(database.FindOrCreateGroupWithAttribute(KeeShare.AttributeFlags.IsGroupGroup, KeeShare.GroupsGroupName, PwIcon.MultiKeys)); }
//using these properties ensures that the groups are existent everytime we try to get them /// <summary> /// References the group where KeeShare will store all user entries. /// From here you can get an overview and organize your users. /// It also empowers you to share passwords with single users, by dragNdrop them /// unto the users home folder. /// </summary> public static PwGroup GetUsersGroup(this PwDatabase database) { Debug.Assert(database != null); return(database.FindOrCreateGroupWithAttribute(KeeShare.AttributeFlags.IsUserGroup, KeeShare.UsersGroupName, PwIcon.Home)); }
public static PwGroup GetImportGroup(this PwDatabase database) { Debug.Assert(database != null); return(database.FindOrCreateGroupWithAttribute(KeeShare.AttributeFlags.IsImportGroup, KeeShare.ImportGroupName, GetSyncGroup(database), PwIcon.WorldSocket)); }
public static PwGroup GetExportGroup(this PwDatabase database) { return(database.FindOrCreateGroupWithAttribute(KeeShare.AttributeFlags.IsExportGroup, KeeShare.ExportGroupName, GetSyncGroup(database), PwIcon.WorldSocket)); }