private void processInput()
 {
     if (sendDataTextBox.Text[0] == 'P')
     {
         string path = "Distance " + sendDataTextBox.Text.Substring(1) + " cm";
         dataTextBox.Text += path + Environment.NewLine;
         //fileAdapter.writeLine(path);
     }
     else
     {
         serialPort.Write(sendDataTextBox.Text + '\n');
         dataCollector = new DataCollector(sendDataTextBox.Text);
     }
     sendDataTextBox.Text = "";
 }
示例#2
0
 public GraphicController(DataCollector dataCollector)
 {
     this.dataCollector = dataCollector;
     title = dataCollector.getAction();
 }