Пример #1
0
        public static void IdentifyAllMonitors()

        {
            Screen[] screens = Screen.AllScreens;

            //Console.WriteLine("total screens: " + screens.Length.ToString());

            for (int i = 0; i < screens.Length; i++)

            {
                Screen screen = screens[i];

                MonitorIdentifier tf2 = new MonitorIdentifier();

                tf2.Show(screen, i + 1);



                //Console.WriteLine("index: " + i.ToString());

                //Console.WriteLine("device: " + GetDeviceName(screen));

                //Console.WriteLine("isprimary: " + screen.Primary.ToString());

                System.Threading.Thread.Sleep(100);
            }
        }
Пример #2
0
        public static void IdentifyAllMonitors()
        {
            Screen[] screens = Screen.AllScreens;
            //Console.WriteLine("total screens: " + screens.Length.ToString());
            for (int i = 0; i < screens.Length; i++)
            {
                Screen screen = screens[i];
                MonitorIdentifier tf2 = new MonitorIdentifier();
                tf2.Show(screen, i + 1);

                //Console.WriteLine("index: " + i.ToString());
                //Console.WriteLine("device: " + GetDeviceName(screen));
                //Console.WriteLine("isprimary: " + screen.Primary.ToString());
                System.Threading.Thread.Sleep(100);
            }
        }