public LrcShowWindow() { InitializeComponent(); this.DataContext = ConfigPage.GlobalConfig; CurrentInstence = this; PlayListBase.PlayingChanged += OnPlayingChanged; //LRC滚动 UpdateDesktopLrcScrollerTimer = new System.Windows.Threading.DispatcherTimer(); UpdateDesktopLrcScrollerTimer.Interval = TimeSpan.FromSeconds(0.1); UpdateDesktopLrcScrollerTimer.Tick += UpdateDesktopLrcScrollerTimer_Tick; }
private void DesktopLrcWindow_Unloaded(object sender, RoutedEventArgs e) { CurrentInstence = null; Playing.UpdateLrcUIDeleLink -= UpdateDesktopLrc; PlayListBase.PlayingChanged -= OnPlayingChanged; }