private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     if (biliDanmu == null)
     {
         biliDanmu = new MainOverlay();
         biliDanmu.OpenOverlay();
         biliDanmu.Show();
     }
 }
Esempio n. 2
0
        private void ExcelFormWithNotify_Load(object sender, EventArgs e)
        {
            //PlotPlatoWindow plotPlato = new PlotPlatoWindow();
            //plotPlato.Show();

            return;
            if (biliDanmu==null)
            {
                biliDanmu = new MainOverlay();
                biliDanmu.OpenOverlay();
                biliDanmu.Show();
            }
           
        }
Esempio n. 3
0
 public async void OpenOverlay()
 {
     OnMarquee = null;
     await MainDispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal, new Action(() =>
     {
         var overlay = new MainOverlay();
         overlay.Background = System.Windows.Media.Brushes.Transparent;
         var mainOverlayHeight = (double)App.Current.Resources["MainOverlayHeight"];
         overlay.Top = SystemParameters.WorkArea.Height - mainOverlayHeight;
         overlay.Left = SystemParameters.WorkArea.Left;
         overlay.Show();
         OnMarquee += overlay.Marquee;
         this.overlay = overlay;
     }));
 }