Пример #1
0
        public frmCustomChannel(CustomStation station, List <myStation> stations)
        {
            _station = station;

            InitializeComponent();
            this.Text        = station.Name;
            tbChannel.Text   = $"{station.Number}{(station.Subnumber == 0 ? "" : $".{station.Subnumber}")}";
Пример #2
0
        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));
        }
Пример #3
0
 public customChannel(CustomStation station) : base(new string[5])
 {
     Station = station;
     Refresh();
 }