private void DeconstructGraph() { rootVisualElement.Remove(graph); graph = null; saveButton.SetEnabled(false); addSpeechButton.SetEnabled(false); addResponseButton.SetEnabled(false); }
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); }