newdataeventargs.cs

来自「c#编写的带控件GPS接收程序」· CS 代码 · 共 36 行

CS
36
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace GpsSerialPortProgram
{
    class NewDataEventArgs:EventArgs
    {
        string currentData;

        public string CurrentData
        {
            get
            {
                return currentData;
            }
            set
            {
                if (value == null)
                {
                    currentData = string.Empty;
                }
                else
                {
                    currentData = value;
                }
            }
        }

        public NewDataEventArgs(string curData)
        {
            this.CurrentData = curData;
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?