예제 #1
0
        private void OnAnalyzed()
        {
            var type       = (byte)(_byet0 >> 7);
            var deviceType = (byte)(_byet0 >> 3 & 0x0F);
            var category   = (byte)_byte2;
            var id         = (byte)_byte3;
            var value      = _value.ToArray();

            _byet0  = null;
            _byte1  = null;
            _byte2  = null;
            _byte3  = null;
            _length = null;
            _value.Clear();
            var message   = new Message(type, deviceType, category, id, value);
            var eventArgs = new MessageEventArgs(message);

            Analyzed?.Invoke(this, eventArgs);
        }
예제 #2
0
 private void OnAnalyzed(object sender, MessageEventArgs e)
 {
     Analyzed?.Invoke(this, e);
 }
예제 #3
0
 /// <summary>
 /// Event raised whenever the fixing function has analyzed a file.
 /// </summary>
 /// <param name="filePath">The name of the last file analyzed.</param>
 protected virtual void OnAnalyzed(string filePath)
 {
     Analyzed?.Invoke(this, filePath);
 }