Exemplo n.º 1
0
        private void btnPlayList_Click(object sender, RoutedEventArgs e)
        {
            List <string> lista = new List <string>();

            foreach (string item in lstListaReproducción.Items)
            {
                lista.Add(item);
            }
            full = new FullScreen(lista);
            full.WindowStartupLocation = System.Windows.WindowStartupLocation.Manual;

            if (System.Windows.Forms.SystemInformation.MonitorCount.Equals(1))
            {
                System.Windows.MessageBox.Show("No cuenta con 2 monitores.\nDebe conectar un segundo y colocarlo en Expandir Escritorio", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
            else
            {
                System.Drawing.Rectangle workingArea = System.Windows.Forms.Screen.AllScreens[1].WorkingArea;
                full.Left        = workingArea.Left;
                full.Top         = workingArea.Top;
                full.Width       = workingArea.Width;
                full.Height      = workingArea.Height;
                full.WindowStyle = System.Windows.WindowStyle.None;
                full.Topmost     = true;
                full.Show();
                reloj.Start();
                btnStopList.IsEnabled   = true;
                btnAvanzar.IsEnabled    = true;
                btnRetroceder.IsEnabled = true;
                DisableOnPlay(false);
            }
        }
        private void btnPlayList_Click(object sender, RoutedEventArgs e)
        {
            List<string> lista = new List<string>();
            foreach (string item in lstListaReproducción.Items)
                lista.Add(item);
            full = new FullScreen(lista);
            full.WindowStartupLocation = System.Windows.WindowStartupLocation.Manual;

            if (System.Windows.Forms.SystemInformation.MonitorCount.Equals(1))
                System.Windows.MessageBox.Show("No cuenta con 2 monitores.\nDebe conectar un segundo y colocarlo en Expandir Escritorio", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            else
            {
                System.Drawing.Rectangle workingArea = System.Windows.Forms.Screen.AllScreens[1].WorkingArea;
                full.Left = workingArea.Left;
                full.Top = workingArea.Top;
                full.Width = workingArea.Width;
                full.Height = workingArea.Height;
                full.WindowStyle = System.Windows.WindowStyle.None;
                full.Topmost = true;
                full.Show();
                reloj.Start();
                btnStopList.IsEnabled = true;
                btnAvanzar.IsEnabled = true;
                btnRetroceder.IsEnabled = true;
                DisableOnPlay(false);
            }
        }
Exemplo n.º 3
0
 public static FullScreen getInstance()
 {
     if (Instance == null)
     {
         Instance = new FullScreen();
     }
     return(Instance);
 }
 public static FullScreen getInstance()
 {
     if (Instance == null)
         Instance = new FullScreen();
     return Instance;
 }