Exemple #1
0
 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;
 }
Exemple #2
0
 private void DesktopLrcWindow_Unloaded(object sender, RoutedEventArgs e)
 {
     CurrentInstence              = null;
     Playing.UpdateLrcUIDeleLink -= UpdateDesktopLrc;
     PlayListBase.PlayingChanged -= OnPlayingChanged;
 }