/// <summary> /// /// </summary> /// <param name="errorMsg"></param> private void OnWinsockError(string errorMsg) { if (this.WinsockError != null) { WinsockErrorHandler temp = WinsockError; WinsockErrorArgs args = new WinsockErrorArgs(errorMsg); temp(this, args); } }
/// <summary> /// Error /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void cpp_WinsockError(object sender, WinsockErrorArgs args) { CommPortProxy cpp = (CommPortProxy)sender; if (this.CppsWinsockErrorEvent != null) { CppsWinsockErrorArgs e = new CppsWinsockErrorArgs(cpp, args.ErrorMessage); CppsWinsockErrorEvent(this, e); } }