public void NewSessionBUTTON() { TopPostPlotPanel.SetActive(false); BottomPostPlotPanel.SetActive(false); TopPlotPanel.SetActive(true); BottomPlotPanel.SetActive(true); StartButton.SetActive(true); StopButton.SetActive(true); SaveDataButton.SetActive(true); NewSessionButton.SetActive(false); UsersList.patientsessioninfo.SessionDate = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); SessionDateLabel.GetComponent <Text>().text = UsersList.patientsessioninfo.SessionDate; PlayPostButton.SetActive(false); PausePostButton.SetActive(false); StopPostButton.SetActive(false); CheckNodesButton.SetActive(true); Destroy(graphGOpost); Destroy(graphGOBottompost); graphGO = Instantiate(graphPrefab) as GameObject; graphGOBottom = Instantiate(graphPrefabBottom) as GameObject; graph = graphGO.GetComponent <WMG_Axis_Graph>(); graphBottom = graphGOBottom.GetComponent <WMG_Axis_Graph>(); graph.changeSpriteParent(graphGO, TopPlotPanel); graphBottom.changeSpriteParent(graphGOBottom, BottomPlotPanel); post_plotting = false; }
public void StopPlotting() { s1.StopRealTimeUpdate(); s2.StopRealTimeUpdate(); s3.StopRealTimeUpdate(); s4.StopRealTimeUpdate(); StartButton.SetActive(false); StopButton.SetActive(false); NewSessionButton.SetActive(true); TopPlotPanel.SetActive(false); BottomPlotPanel.SetActive(false); TopPostPlotPanel.SetActive(true); BottomPostPlotPanel.SetActive(true); PlayPostButton.SetActive(true); PausePostButton.SetActive(false); StopPostButton.SetActive(true); CheckNodesButton.SetActive(false); PostPlotResults(); post_plotting = true; frame = 0; }