private void Error_Changed(int errorcode,string ErrorMsg) { if (ErrorChanged != null) ErrorChanged(errorcode,ErrorMsg); }