Exemplo n.º 1
0
 /// <summary>
 ///     Creates a new DisplayDevice
 /// </summary>
 /// <param name="displayIds">Display identification and attributes of the display device</param>
 public DisplayDevice(IDisplayIds displayIds)
 {
     IsAvailable           = true;
     DisplayId             = displayIds.DisplayId;
     ScanOutInformation    = new ScanOutInformation(this);
     ConnectionType        = displayIds.ConnectionType;
     IsDynamic             = displayIds.IsDynamic;
     IsMultiStreamRootNode = displayIds.IsMultiStreamRootNode;
     IsActive              = displayIds.IsActive;
     IsCluster             = displayIds.IsCluster;
     IsOSVisible           = displayIds.IsOSVisible;
     IsWFD                 = displayIds.IsWFD;
     IsConnected           = displayIds.IsConnected;
     IsPhysicallyConnected = displayIds.IsPhysicallyConnected;
 }
Exemplo n.º 2
0
        /// <summary>
        ///     Creates a new DisplayDevice
        /// </summary>
        /// <param name="displayId">Display identification of the device</param>
        public DisplayDevice(uint displayId)
        {
            DisplayId = displayId;
            var extraInformation = PhysicalGPU.GetDisplayDevices().FirstOrDefault(ids => ids.DisplayId == DisplayId);

            if (extraInformation != null)
            {
                IsAvailable           = true;
                ScanOutInformation    = new ScanOutInformation(this);
                ConnectionType        = extraInformation.ConnectionType;
                IsDynamic             = extraInformation.IsDynamic;
                IsMultiStreamRootNode = extraInformation.IsMultiStreamRootNode;
                IsActive              = extraInformation.IsActive;
                IsCluster             = extraInformation.IsCluster;
                IsOSVisible           = extraInformation.IsOSVisible;
                IsWFD                 = extraInformation.IsWFD;
                IsConnected           = extraInformation.IsConnected;
                IsPhysicallyConnected = extraInformation.IsPhysicallyConnected;
            }
        }