Пример #1
0
        private void BtnApplyToQueueClick(object sender, RoutedEventArgs e)
        {
            var index = cbxUploadElements.SelectedIndex;

            DmUploader.ApplySingleItemToQueue((Video)cbxUploadElements.SelectedItem);

            if (index > cbxUploadElements.Items.Count - 1)
            {
                cbxUploadElements.SelectedIndex = cbxUploadElements.Items.Count - 1;
            }
            else
            {
                cbxUploadElements.SelectedIndex = index;
            }
        }