Exemple #1
0
        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);
        }
Exemple #2
0
 /// <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));
 }
Exemple #3
0
 //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));
 }
Exemple #4
0
 public static PwGroup GetImportGroup(this PwDatabase database)
 {
     Debug.Assert(database != null);
     return(database.FindOrCreateGroupWithAttribute(KeeShare.AttributeFlags.IsImportGroup, KeeShare.ImportGroupName, GetSyncGroup(database), PwIcon.WorldSocket));
 }
Exemple #5
0
 public static PwGroup GetExportGroup(this PwDatabase database)
 {
     return(database.FindOrCreateGroupWithAttribute(KeeShare.AttributeFlags.IsExportGroup, KeeShare.ExportGroupName, GetSyncGroup(database), PwIcon.WorldSocket));
 }