public DataGraph(VisualThread visualThread) { this.visualThread = visualThread; InitializeComponent(); comboBox1.SelectedIndex = 0; zedGraphControlAccS0_Load(this, new EventArgs()); zedGraphControlAccS1_Load(this, new EventArgs()); zedGraphControlAccS2_Load(this, new EventArgs()); zedGraphControlAccS3_Load(this, new EventArgs()); zedGraphControlAccS4_Load(this, new EventArgs()); zedGraphControlGirS0_Load(this, new EventArgs()); zedGraphControlGirS1_Load(this, new EventArgs()); zedGraphControlGirS2_Load(this, new EventArgs()); zedGraphControlGirS3_Load(this, new EventArgs()); zedGraphControlGirS4_Load(this, new EventArgs()); zedGraphControlThetaS0_Load(this, new EventArgs()); /*zedGraphControlThetaS1_Load(this, new EventArgs()); * zedGraphControlThetaS2_Load(this, new EventArgs()); * zedGraphControlThetaS3_Load(this, new EventArgs()); * zedGraphControlThetaS4_Load(this, new EventArgs());*/ zedGraphControlStandLaySit_Load(this, new EventArgs()); setGraph(Sensor.Sensor1, DataInfo.Acc); this.FormClosing += DataGraph_Closing; }
public Recognizer(VisualThread vThread) { this.vThread = vThread; packets = new List <Packet>(); prevWindowLastPackets = new List <Packet>(); actionsToAdd = new List <Progetto.Action>(); sitLayStandActions = new List <KeyValuePair <int, double> >(); }
public static void Main() { settings = new Settings(); InitialPanel iPanel = new InitialPanel(); Application.EnableVisualStyles(); Application.Run(iPanel); VisualThread vThread = new VisualThread(); Thread graphicThread = new Thread(vThread.StartThread); graphicThread.Start(); dataSaver = new DataSaver(); Recognizer recognizer = new Recognizer(vThread); packetBuffer = new PacketBuffer(vThread, recognizer, dataSaver); recognizer.SetPacketBuffer(PacketBuffer); Listener listener = new Listener(PacketBuffer); TcpClient client = listener.Connection(); listener.StreamRead(client); }
public PacketBuffer(VisualThread vThread, Recognizer recognizer, DataSaver dataSaver) { this.vThread = vThread; this.recognizer = recognizer; this.dataSaver = dataSaver; }