示例#1
0
        public override bool OnSelect()
        {
            var screens = _platformServices.EnumerateScreens().ToArray();

            // Select first screen if there is only one
            if (screens.Length == 1)
            {
                Set(screens[0]);
                return(true);
            }

            return(PickScreen());
        }
示例#2
0
        void Screens()
        {
            WriteLine("AVAILABLE SCREENS" + Underline);

            var j = 0;

            // First is Full Screen, Second is Screen Picker
            foreach (var screen in _platformServices.EnumerateScreens())
            {
                WriteLine($"{j.ToString().PadRight(2)}: {screen.DeviceName}");

                ++j;
            }

            WriteLine();
        }