Beispiel #1
0
 public void Open()
 {
     if (Positions == -1)
     {
         Positions            = 0;
         Slider.SelectedIndex = Positions;
         GoPrev.IsEnabled     = false;
         GoNext.IsEnabled     = Images.CanGoNext();
     }
     Slider.Focus();
 }
Beispiel #2
0
 public void SetOsuImage(OsuControl osuImage)
 {
     GoPrev.IsEnabled = false;
     GoNext.IsEnabled = false;
     IsEnabled        = true;
     if (osuImage.IsSongs)
     {
         Images               = osuImage;
         Positions            = 0;
         Slider.SelectedIndex = 0;
         Cards[0, 0].Update(Images.Select());
         for (int i = 1; i < 12; i++)
         {
             Cards[0, i].Update(Images.Next());
         }
         WasNext          = true;
         GoPrev.IsEnabled = false;
         GoNext.IsEnabled = Images.CanGoNext();
     }
 }