Esempio n. 1
0
        private void setBounds(Rectangle rect)
        {
            m_rSize       = rect;
            m_sActiveMode = new MonitorMode(m_rSize.Size, 0);

            if (m_rSize.X < 0 || m_rSize.Y < 0 || (m_rSize.X == 0 && m_rSize.Y == 0))
            {
                m_ePlacement = Placement.Default;
            }
            else if (m_rSize.X == 0)
            {
                m_ePlacement = Placement.Below;
            }
            else if (m_rSize.Y == 0)
            {
                m_ePlacement = Placement.Right;
            }
        }
Esempio n. 2
0
 internal void AddMode(MonitorMode mode)
 {
     m_lstModes.Add(mode);
 }