protected override int AddNewData()
        {
            m_entityInstanceDefinition = DataManager.Generate<EntityInstanceDefinition>();
            m_entityInstanceDefinition.Name = m_textBox_name.Text;
            m_entityInstanceDefinition.GameState = m_textBox_gameState.Text;

            DataManager.EntityInstanceDefinitions.Add(m_entityInstanceDefinition);

            return m_entityInstanceDefinition.Id;
        }
        public UserControl_EntityInstanceDefinition(EntityInstanceDefinition entityInstanceDefinition)
            : base("Entity Instance Definition", false)
        {
            m_entityInstanceDefinition = entityInstanceDefinition;

            if (DataIsNull())
            {
                m_textBlock_id.Text = "N/A";
                m_textBox_name.Text = string.Empty;
                m_textBox_gameState.Text = string.Empty;
            }
            else
            {
                m_textBlock_id.Text = m_entityInstanceDefinition.Id.ToString();
                m_textBox_name.Text = m_entityInstanceDefinition.Name;
                m_textBox_gameState.Text = m_entityInstanceDefinition.GameState;
            }
        }
 private void Select(EntityInstanceDefinition entityInstanceDefinition)
 {
     RemoveUserControl();
     m_userControl_entityInstanceDefinition = new UserControl_EntityInstanceDefinition(entityInstanceDefinition);
     m_grid_main.SetRowColumn(m_userControl_entityInstanceDefinition, 1, 0);
 }
 private LevelLayout AddTemporaryLevelLayout(EntityInstanceDefinition entityInstanceDefinition, double x, double y)
 {
     var levelLayout =
         new LevelLayout()
         {
             Id = c_temporaryId,
             EntityInstanceDefinition = entityInstanceDefinition,
             Level = m_level,
             Priority = 0,
             X = x,
             Y = y
         };
     m_levelLayouts.Add(levelLayout);
     return levelLayout;
 }