private void SelectFontTextureDefinition(FontTextureDefinition fontTextureDefinition)
 {
     RemoveFontTextureControls(false);
     m_userControl_fontTextureDefinition = new UserControl_FontTextureDefinition(fontTextureDefinition);
     m_userControl_fontTextureDefinition.NewDataAddedEvent += UserControl_FontTextureDefinition_NewDataAdded;
     m_userControl_fontTextureDefinition.ExistingDataUpdatedEvent += UserControl_FontTextureDefinition_ExistingDataUpdated;
     m_grid_main.SetRowColumn(m_userControl_fontTextureDefinition, 1, 1);
 }
        private void RemoveFontTextureControls(bool removeComboBox)
        {
            if (m_userControl_fontTextureDefinition != null)
                m_grid_main.Children.Remove(m_userControl_fontTextureDefinition);
            m_userControl_fontTextureDefinition = null;

            if (removeComboBox)
            {
                if (m_comboBox_fontTextureDefinition != null)
                    m_grid_main.Children.Remove(m_comboBox_fontTextureDefinition);
                m_comboBox_fontTextureDefinition = null;
            }
        }