private void OnConnStateChanged(s_ConnState State) { if (ConnStateChanged != null) { ConnStateChanged.Invoke(State, EventArgs.Empty); } }
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); }