示例#1
0
 private void OnConnStateChanged(s_ConnState State)
 {
     if (ConnStateChanged != null)
     {
         ConnStateChanged.Invoke(State, EventArgs.Empty);
     }
 }
示例#2
0
        void CallBack(uint Msg, rasapi32.RASCONNSTATE State, uint Error)
        {
            s_ConnState c_State = new s_ConnState();

            c_State.Msg              = Msg;
            c_State.State            = State;
            c_State.Error            = Error;
            c_State.Param            = Param;
            c_State.ErrorDescription = GetErrorDescription((int)Error);
            OnConnStateChanged(c_State);
        }