public frmCustomChannel(CustomStation station, List <myStation> stations) { _station = station; InitializeComponent(); this.Text = station.Name; tbChannel.Text = $"{station.Number}{(station.Subnumber == 0 ? "" : $".{station.Subnumber}")}";
private void lvAvailable_MouseDoubleClick(object sender, MouseEventArgs e) { var item = lvAvailable.GetItemAt(e.X, e.Y) as availableStation; var station = new CustomStation { Number = -1, Subnumber = 0, Callsign = item.Station.Callsign, Name = item.Station.Name, StationId = item.Station.StationId }; ((CustomLineup)cbCustom.SelectedItem).Station.Add(station); lvCustom.Items.Add(new customChannel(station)); }
public customChannel(CustomStation station) : base(new string[5]) { Station = station; Refresh(); }