private void NotifyData(int i1, string s) { BgThreadEventArgs _bgThread2EventArgs; //is there any subscriber if (this.bgThread2Event == null) { return; } try { _bgThread2EventArgs = new BgThreadEventArgs(i1, s); this.bgThread2Event(this, _bgThread2EventArgs); } catch (MissingMethodException) { } }
private void NotifyData(UserData2 u2Data) { BgThreadEventArgs _bgThread2EventArgs; //is there any subscriber if (this.bgThread2Event == null) { return; } try { queueData qData = new queueData(); qData.sIP = u2Data.sIP; qData.iPingCount = u2Data.iPingCount; qData.iPingReplies = u2Data.iPingReplies; qData.iPingReplyTime = u2Data.iPingReplyTime; qData.iPingTimeout = u2Data.iPingTimeout; _bgThread2EventArgs = new BgThreadEventArgs(qData); this.bgThread2Event(this, _bgThread2EventArgs); } catch (MissingMethodException) { } }