/// <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); }
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); }