private void RemoveUserControl() { if (m_userControl_behaviorInstanceDefinition != null) m_grid_main.Children.Remove(m_userControl_behaviorInstanceDefinition); m_userControl_behaviorInstanceDefinition = null; }
private void Select(BehaviorInstanceDefinition behaviorInstanceDefinition) { RemoveUserControl(); m_userControl_behaviorInstanceDefinition = new UserControl_BehaviorInstanceDefinition(behaviorInstanceDefinition); m_grid_main.SetRowColumn(m_userControl_behaviorInstanceDefinition, 1, 0); }
private void New() { RemoveUserControl(); m_userControl_behaviorInstanceDefinition = new UserControl_BehaviorInstanceDefinition(null); m_grid_main.SetRowColumn(m_userControl_behaviorInstanceDefinition, 1, 0); }