Example #1
0
        private void SetSelectedRow(ListIndex li)
        {
            selectedRow      = li.getValue();
            RefreshButton    = true;
            BackgroundButton = true;
            //chargement des databases
            if (selectedRow != -1)
            {
                var thumb = Cuts.GetAt(selectedRow).Thumbnail;
                TeamOne   = Cuts.GetAt(selectedRow).Thumbnail.TeamOne;
                TeamTwo   = Cuts.GetAt(selectedRow).Thumbnail.TeamTwo;
                DbCharOne = Cuts.GetAt(selectedRow).Thumbnail.TeamOne.DataBase;
                DbCharTwo = Cuts.GetAt(selectedRow).Thumbnail.TeamTwo.DataBase;
                Debug.WriteLine(Cuts.GetAt(selectedRow).Thumbnail.TeamOne.DataBase[0].Name);
                Debug.WriteLine(Cuts.GetAt(selectedRow).Thumbnail.TeamOne.DataBase[0].IsPlayed);

                Background = new BitmapImage(thumb.Background);
                ResetPreview();
            }
        }
 private void SetSelectedRow(ListIndex li)
 {
     selectedRow = li.getValue();
     DelEnable   = true;
 }
 private void SetSelectedRow(ListIndex li)
 {
     selectedRow = li.getValue();
     BeginEnable = true;
     EndEnable   = true;
 }