Exemplo n.º 1
0
        string[] monitorLabels()
        {
            int           count = NativeRecorder.GetMonitorCount();
            List <string> texts = new List <string>();

            for (int i = 0; i < count; i++)
            {
                var monitor = NativeRecorder.GetMonitor(i);
                if (monitor != null)
                {
                    string t = string.Format(
                        "Monitor{0} ({1}x{2}{3})",
                        (i + 1),
                        monitor.Width,
                        monitor.Height,
                        monitor.IsPrimary ? ", PRIMARY" : "");
                    texts.Add(t);
                }
            }
            return(texts.ToArray());
        }