/// <summary> /// Sets the state to be viewed /// </summary> internal void SetState(IState state, FAName name) { if (state != rootState) { if (state != null) { rootState = state; StateVariablesViewer viewer = new StateVariablesViewer(state, name); viewer.Initialize(); this.propertyGrid1.SelectedObject = viewer; } else { rootState = null; this.propertyGrid1.SelectedObject = null; } } }
/// <summary> /// Sets the state to be viewed /// </summary> public void SetState(IState state) { if (state != rootState) { if (state != null) { rootState = state; StateVariablesViewer viewer = new StateVariablesViewer(state, this.defaultModelName); viewer.Initialize(); this.propertyGrid1.SelectedObject = viewer; } else { rootState = null; this.propertyGrid1.SelectedObject = null; } } }
/// <summary> /// Sets the state to be viewed /// </summary> public void SetState(IState state) { if (state != rootState) { if (state != null) { rootState = state; StateVariablesViewer viewer = new StateVariablesViewer(state,this.defaultModelName); viewer.Initialize(); this.propertyGrid1.SelectedObject = viewer; } else { rootState = null; this.propertyGrid1.SelectedObject = null; } } }