예제 #1
0
파일: DeviceOld.cs 프로젝트: serialbus/NGK
 //---------------------------------------------------------------------------
 private void EventHandler_DataLinkObject_RequestRecived(object sender, 
     EventArgsRequestRecived args)
 {
     // Отвечаем на запрос
     this._replyToRequest.BeginInvoke(args.Request, null, null);
     // Формируем событие
     this._onRequstRecived.BeginInvoke(args, null, null);
     //OnRequestRecived(args);
     return;
 }
예제 #2
0
파일: DeviceOld.cs 프로젝트: serialbus/NGK
 //---------------------------------------------------------------------------
 /// <summary>
 /// Формирует событие приёма запроса от мастера сети
 /// </summary>
 /// <param name="args">Аргументы события</param>
 private void OnRequestRecived(EventArgsRequestRecived args)
 {
     if (this.RequestRecived != null)
     {
         this.RequestRecived(this, args);
     }
 }