Class StationListBox
- Namespace
- RadioExt_Helper.custom_controls
- Assembly
- RadioExt-Helper.dll
Represents a custom ListBox control for displaying stations.
This listbox has support for displaying icons; one for the station's active status (enabled/disabled)
and one for the station's save status (saved/edited).
public sealed class StationListBox : ListBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
- Inheritance
-
StationListBox
- Implements
- Inherited Members
- Extension Methods
Constructors
StationListBox()
Initializes a new instance of the StationListBox class.
public StationListBox()
Properties
DisabledIconKey
Gets or sets the key for the disabled icon in the ImageList.
[Browsable(true)]
public string DisabledIconKey { get; set; }
Property Value
DuplicateColor
Gets or sets the color used to highlight duplicate station names.
[Browsable(true)]
public Color DuplicateColor { get; set; }
Property Value
DuplicateFont
[Browsable(true)]
public Font DuplicateFont { get; set; }
Property Value
EditedStationIconKey
Gets or sets the key for the edited station icon in the ImageList.
[Browsable(true)]
public string EditedStationIconKey { get; set; }
Property Value
EnabledIconKey
Gets or sets the key for the enabled icon in the ImageList.
[Browsable(true)]
public string EnabledIconKey { get; set; }
Property Value
ImageList
Gets or sets the ImageList containing the icons for the list box.
[Browsable(true)]
public ImageList ImageList { get; set; }
Property Value
NewStationColor
[Browsable(true)]
public Color NewStationColor { get; set; }
Property Value
NewStationFont
[Browsable(true)]
public Font NewStationFont { get; set; }
Property Value
SavedStationIconKey
Gets or sets the key for the saved station icon in the ImageList.
[Browsable(true)]
public string SavedStationIconKey { get; set; }
Property Value
SongsMissingColor
Gets or sets the color used to highlight stations with missing songs.
[Browsable(true)]
public Color SongsMissingColor { get; set; }
Property Value
SongsMissingFont
[Browsable(true)]
public Font SongsMissingFont { get; set; }
Property Value
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposing
bool- true if managed resources should be disposed; otherwise, false.
OnDrawItem(DrawItemEventArgs)
Handles the drawing of an item in the ListBox.
An item is drawn like so: (left-aligned){active status icon} {Station Name} {save status icon}(right-aligned)
It's font and color are styled appropriately depending on whether it's a duplicate station or has missing songs.
protected override void OnDrawItem(DrawItemEventArgs e)
Parameters
e
DrawItemEventArgs- The event data.
OnMeasureItem(MeasureItemEventArgs)
Handles the measurement of an item in the ListBox.
protected override void OnMeasureItem(MeasureItemEventArgs e)
Parameters
e
MeasureItemEventArgs- The event data.
Events
StationsImported
Occurs whenever the station is imported from a .zip or .rar file.
public event EventHandler<List<Guid?>>? StationsImported
Event Type
- EventHandler<List<Guid?>>