Example #1
0
 /// <summary>
 ///     Updates the private list of flags, sets properties like HasChildren and Selectable
 /// </summary>
 /// <param name="flags"></param>
 internal void UpdateFlags(IEnumerable <string> flags)
 {
     _flags = new FolderFlagCollection((flags ?? new string[0]).Where(_ => !string.IsNullOrEmpty(_)), _client,
                                       this);
     Selectable  = !flags.Contains(FolderFlags.NoSelect);
     HasChildren = flags.Contains(FolderFlags.HasChildren);
 }
Example #2
0
 internal void UpdateFlags(IEnumerable<string> flags)
 {
     _flags = new FolderFlagCollection((flags ?? new string[0]).Where(_ => !string.IsNullOrEmpty(_)), _client, this);
     Selectable = !flags.Contains(FolderFlags.NoSelect);
     HasChildren = flags.Contains(FolderFlags.HasChildren);
 }