//数据监控线程函数 private void MOnitor() { while (ThreadFlag) { while (WorkFlag) { index++; index = index % indexCount; WaveLine.Add(testVal[index]); Thread.Sleep(300); } } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.WaveLine = ((WpfWaveLines.WaveLine)(target)); return; case 2: this.btnStart = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }