Пример #1
0
 /// <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;
         }
     }
 }
Пример #2
0
 /// <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;
         }
     }
 }
Пример #3
0
 /// <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;
         }
     }
 }
Пример #4
0
 /// <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;
         }
     }
 }