Exemplo n.º 1
0
 //数据监控线程函数
 private void MOnitor()
 {
     while (ThreadFlag)
     {
         while (WorkFlag)
         {
             index++;
             index = index % indexCount;
             WaveLine.Add(testVal[index]);
             Thread.Sleep(300);
         }
     }
 }
Exemplo n.º 2
0
        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;
        }