private void GetBinding() { TimeHisResult cushion = _result[0]; textBlock01.SetBinding(TextBlock.TextProperty, new Binding("XRms") { Source = cushion }); textBlock02.SetBinding(TextBlock.TextProperty, new Binding("YRms") { Source = cushion }); textBlock03.SetBinding(TextBlock.TextProperty, new Binding("ZRms") { Source = cushion }); textBlock11.SetBinding(TextBlock.TextProperty, new Binding("TotRms") { Source = cushion }); TimeHisResult back = _result[1]; textBlock04.SetBinding(TextBlock.TextProperty, new Binding("XRms") { Source = back }); textBlock05.SetBinding(TextBlock.TextProperty, new Binding("YRms") { Source = back }); textBlock06.SetBinding(TextBlock.TextProperty, new Binding("ZRms") { Source = back }); textBlock12.SetBinding(TextBlock.TextProperty, new Binding("TotRms") { Source = back }); TimeHisResult foot = _result[2]; textBlock07.SetBinding(TextBlock.TextProperty, new Binding("XRms") { Source = foot }); textBlock08.SetBinding(TextBlock.TextProperty, new Binding("YRms") { Source = foot }); textBlock09.SetBinding(TextBlock.TextProperty, new Binding("ZRms") { Source = foot }); textBlock13.SetBinding(TextBlock.TextProperty, new Binding("TotRms") { Source = foot }); }
private void CalResult() { for (int i = 0; i < (_data.Length % 3); i++) { double[][] _sigData = new double[3][]; for (int j = 0; j < 3; j++) { _sigData[j] = _data[i * 3 + j]; } TimeHisResult sto = new TimeHisResult(_sigData, i); RmsResult.Add(sto); } }
private void CalResult() { for (int i = 0; i < (_data.Length / 3); i++) { double[][] _sigData = new double[3][]; for (int j = 0; j < 3; j++) { _sigData[j] = _data[i * 3 + j]; } TimeHisResult sto = new TimeHisResult(_sigData, i); listRes[i] = sto; } }