Ejemplo n.º 1
0
 private void DeconstructGraph()
 {
     rootVisualElement.Remove(graph);
     graph = null;
     saveButton.SetEnabled(false);
     addSpeechButton.SetEnabled(false);
     addResponseButton.SetEnabled(false);
 }
Ejemplo n.º 2
0
 private void ConstructGraph()
 {
     graph = new SpeakEasyGraph();
     graph.StretchToParentSize();
     rootVisualElement.Add(graph);
     //When constructin the graph, make sure that the toolbar is pushed forward
     toolbar.PlaceInFront(graph);
     //renable controls
     saveButton.SetEnabled(true);
     addSpeechButton.SetEnabled(true);
     addResponseButton.SetEnabled(true);
 }