public void Render(DrawArgs drawArgs)
        {
            try
            {
                if (m_Initialized)
                {
                    if (m_NorthWestChild != null && m_NorthWestChild.m_Initialized)
                    {
                        m_NorthWestChild.Render(drawArgs);
                    }
                    else if (m_NwImageLayer != null && m_NwImageLayer.Initialized)
                    {
                        m_NwImageLayer.Render(drawArgs);
                    }

                    if (m_NorthEastChild != null && m_NorthEastChild.m_Initialized)
                    {
                        m_NorthEastChild.Render(drawArgs);
                    }
                    else if (m_NeImageLayer != null && m_NeImageLayer.Initialized)
                    {
                        m_NeImageLayer.Render(drawArgs);
                    }

                    if (m_SouthWestChild != null && m_SouthWestChild.m_Initialized)
                    {
                        m_SouthWestChild.Render(drawArgs);
                    }
                    else if (m_SwImageLayer != null && m_SwImageLayer.Initialized)
                    {
                        m_SwImageLayer.Render(drawArgs);
                    }

                    if (m_SouthEastChild != null && m_SouthEastChild.m_Initialized)
                    {
                        m_SouthEastChild.Render(drawArgs);
                    }
                    else if (m_SeImageLayer != null && m_SeImageLayer.Initialized)
                    {
                        m_SeImageLayer.Render(drawArgs);
                    }
                }
            }
            catch            //(Exception ex)
            {
                //Log.Write(ex);
            }
        }
Ejemplo n.º 2
0
        public void Render(DrawArgs drawArgs)
        {
            if (m_Initialized)
            {
                if (m_NorthWestChild != null && m_NorthWestChild.m_Initialized)
                {
                    m_NorthWestChild.Render(drawArgs);
                }
                else if (m_NwImageLayer != null && m_NwImageLayer.Initialized)
                {
                    m_NwImageLayer.Render(drawArgs);
                }

                if (m_NorthEastChild != null && m_NorthEastChild.m_Initialized)
                {
                    m_NorthEastChild.Render(drawArgs);
                }
                else if (m_NeImageLayer != null && m_NeImageLayer.Initialized)
                {
                    m_NeImageLayer.Render(drawArgs);
                }

                if (m_SouthWestChild != null && m_SouthWestChild.m_Initialized)
                {
                    m_SouthWestChild.Render(drawArgs);
                }
                else if (m_SwImageLayer != null && m_SwImageLayer.Initialized)
                {
                    m_SwImageLayer.Render(drawArgs);
                }

                if (m_SouthEastChild != null && m_SouthEastChild.m_Initialized)
                {
                    m_SouthEastChild.Render(drawArgs);
                }
                else if (m_SeImageLayer != null && m_SeImageLayer.Initialized)
                {
                    m_SeImageLayer.Render(drawArgs);
                }
            }
        }