public QueueControl(queueSinger singer)
        {
            InitializeComponent();

            this.QueueSinger = singer;
            this.SingerID = singer.user.userID;

            IsExpanded = false;
            songControlList = new ObservableCollection<QueueSongControl>();

            LabelSinger.Content = this.QueueSinger.user.userName;

            SetSongList();
        }
Beispiel #2
0
        private void GetSingerQueue(long djKey, object userState)
        {
            queueSinger[] singerQueue = new queueSinger[0];

            Response response = _client.DJGetQueue(out singerQueue, djKey);

            if (GetQueueComplete != null)
            {
                GetQueueComplete(this, new QueueArgs(response, singerQueue.ToList<queueSinger>(), userState));
            }
        }
        public void Update(queueSinger singer)
        {
            this.QueueSinger = singer;

            SetSongList();
        }
Beispiel #4
0
        private void GetSingerQueue(long djKey, object userState)
        {
            queueSinger[] singerQueue = new queueSinger[0];

            Response response;
            try
            {
                response = _client.DJGetQueue(out singerQueue, djKey);
            }
            catch
            {
                response = new Response();
                response.error = true;
                response.message = "Error in the service connection.";
            }

            GetWaitTime(djKey, null);

            if (GetQueueComplete != null)
            {
                GetQueueComplete(this, new QueueArgs(response, singerQueue.ToList<queueSinger>(), userState));
            }
        }