From 56ad6dba4d5f5ed242f43dd226e706d1981fd315 Mon Sep 17 00:00:00 2001 From: gaoc Date: Fri, 12 Jun 2015 02:05:49 +0800 Subject: [PATCH] code refactoring --- Windup.SerialTalker/EventArgs/DataRxEventArgs.cs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Windup.SerialTalker/EventArgs/DataRxEventArgs.cs b/Windup.SerialTalker/EventArgs/DataRxEventArgs.cs index b364bb4..6e8ab82 100644 --- a/Windup.SerialTalker/EventArgs/DataRxEventArgs.cs +++ b/Windup.SerialTalker/EventArgs/DataRxEventArgs.cs @@ -7,11 +7,13 @@ namespace Windup.SerialTalker { public class DataRxEventArgs: EventArgs { - private byte _data; - public byte Data { get { return _data; } } - public DataRxEventArgs(byte data) - { - _data = data; - } + public DataRxEventArgs () + { + } + + public byte Data { + get; + set; + } } }