Exemplo n.º 1
0
        private ShortCutGroup LookupOrCreateShortcutGroup(ICollection <ShortCutGroup> knownGroups, string groupKey)
        {
            if (string.IsNullOrWhiteSpace(this.ShortCutGroupKey))
            {
                return(null);
            }
            var grp = knownGroups.FirstOrDefault(g => Equals(this.ShortCutGroupKey, g.Key));

            if (grp == null)
            {
                grp = new ShortCutGroup {
                    Key = groupKey
                };
                knownGroups.Add(grp);
            }
            return(grp);
        }
Exemplo n.º 2
0
 protected bool Equals(ShortCutGroup other)
 {
     return(string.Equals(this.Key, other.Key));
 }
Exemplo n.º 3
0
 protected bool Equals(ShortCutGroup other)
 {
     return string.Equals(this.Key, other.Key);
 }