statechangedeventargs.cs

来自「破解的飞信源代码」· CS 代码 · 共 34 行

CS
34
字号
namespace Imps.Client.Base
{
    using System;

    public class StateChangedEventArgs : EventArgs
    {
        private ConnectionState _newState;
        private ConnectionState _oldState;

        public StateChangedEventArgs(ConnectionState oldState, ConnectionState newState)
        {
            this._oldState = oldState;
            this._newState = newState;
        }

        public ConnectionState NewState
        {
            get
            {
                return this._newState;
            }
        }

        public ConnectionState OldState
        {
            get
            {
                return this._oldState;
            }
        }
    }
}

⌨️ 快捷键说明

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