Example #1
0
 /// <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);
     }
 }
Example #2
0
        /// <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);
            }
        }