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(); } }
public static void SetControl(string osuSongs, int minWidth, int minHeight) { Control = new OsuControl(osuSongs, minWidth, minHeight); }