Example #1
0
        private void RunTimeAnalyzer_Received(object sender, EventArgs e)
        {
            var Received = e as ReceivedEventArgs;

            TotalBuff.Write(Received.downBuffer, 0, Received.bytesSize);


            if (lastTime.Year == 1)
            {
                lastTime = DateTime.Now;
                return;
            }
            if ((DateTime.Now - lastTime).TotalSeconds >= Convert.ToInt32(interval.Text))
            {
                lastTime = DateTime.Now;
                //  is5 = true;
                // is7 = false; //temp
                var obj = new ReceivedStepArgs()
                {
                    station = textBox1.Text, Step = 1
                };
                TotalBuff.WriteTo(obj.Stream);
                TotalBuff.SetLength(0);
                this.OnStep_Identify(obj);
            }
        }
Example #2
0
        protected virtual void OnStep_Identify(ReceivedStepArgs e)
        {
            EventHandler handler = Step_Identify;

            if (handler != null)
            {
                handler(this, e);
            }
        }