Table of Contents

Class UserListSource

Namespace
EchoHub.Client.UI.ListSources
Assembly
EchoHub.Client.dll

Custom list data source for the online users panel with per-user nickname colors.

public class UserListSource : IListDataSource, IDisposable
Inheritance
UserListSource
Implements
IListDataSource
Inherited Members

Constructors

UserListSource()

public UserListSource()

Properties

Count

public int Count { get; }

Property Value

int

MaxItemLength

public int MaxItemLength { get; }

Property Value

int

SuspendCollectionChangedEvent

public bool SuspendCollectionChangedEvent { get; set; }

Property Value

bool

Methods

Dispose()

public void Dispose()

GetUsername(int)

public string? GetUsername(int index)

Parameters

index int

Returns

string

IsMarked(int)

public bool IsMarked(int item)

Parameters

item int

Returns

bool

Render(ListView, bool, int, int, int, int, int)

public void Render(ListView listView, bool selected, int item, int col, int row, int width, int viewportX = 0)

Parameters

listView ListView
selected bool
item int
col int
row int
width int
viewportX int

SetMark(int, bool)

public void SetMark(int item, bool value)

Parameters

item int
value bool

ToList()

public IList ToList()

Returns

IList

Update(List<(string Text, Attribute? NameColor, string Username)>)

public void Update(List<(string Text, Attribute? NameColor, string Username)> users)

Parameters

users List<(string Text, Attribute? NameColor, string Username)>

Events

CollectionChanged

public event NotifyCollectionChangedEventHandler? CollectionChanged

Event Type

NotifyCollectionChangedEventHandler