/// <summary>
        ///
        /// </summary>
        private void PopulatePhysicalMonitors()
        {
            iComboBoxPhysicalMonitors.Items.Clear();
            // Populate our physical monitor accordingly
            VirtualMonitor vm = CurrentVirtualMonitor();

            foreach (PhysicalMonitor pm in vm.PhysicalMonitors)
            {
                iComboBoxPhysicalMonitors.Items.Add(pm.Description);
            }

            if (iComboBoxPhysicalMonitors.Items.Count > 0) //Defensive
            {
                // Select first monitor
                iComboBoxPhysicalMonitors.SelectedIndex = 0;
            }
        }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="aPhysicalMonitor"></param>
 /// <returns></returns>
 static public string MonitorId(int aIndex, VirtualMonitor aVirtualMonitor)
 {
     return(aIndex + ": " + aVirtualMonitor.FriendlyName);
 }