Class StationEditor
- Namespace
- RadioExt_Helper.user_controls
- Assembly
- RadioExt-Helper.dll
Represents a user control for editing a station.
public sealed class StationEditor : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IEditor
- Inheritance
-
StationEditor
- Implements
- Inherited Members
- Extension Methods
Constructors
StationEditor(TrackableObject<Station>)
Initializes a new instance of the StationEditor class.
public StationEditor(TrackableObject<Station> station)
Parameters
station
TrackableObject<Station>- The trackable station object.
Properties
Id
The unique identifier for this editor.
public Guid Id { get; set; }
Property Value
Station
Gets the trackable station object.
public TrackableObject<Station> Station { get; }
Property Value
Type
The type of editor.
public EditorType Type { 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.
GetMusicPlayer()
Gets the music player associated with the station.
public MusicPlayer GetMusicPlayer()
Returns
- MusicPlayer
- The music player.
ResetUi()
Reset the UI values to the defaults for the station.
public void ResetUi()
Translate()
Translates the user control to the current language.
public void Translate()
UpdateCustomDataView()
Forces an update to the station's custom data grid view.
public void UpdateCustomDataView()
UpdateIcon(TrackableObject<WolvenIcon>?)
public void UpdateIcon(TrackableObject<WolvenIcon>? icon)
Parameters
icon
TrackableObject<WolvenIcon>
UpdateStationName(string)
Updates the station's display name. Mainly used when the main form detects a duplication.
public void UpdateStationName(string newName)
Parameters
newName
string- The new station name.
Events
StationUpdated
Event that is raised when the station is updated.
public event EventHandler? StationUpdated