예제 #1
0
 void NotifyAllStatusChange(string PcName, RegisterDeviceInfo info)
 {
     var q = dictClientCallBacks.Where(n => n.Value.info.DeviceType == "CONSOLE");
     foreach (KeyValuePair<string, RegisterData> pair in q.ToArray())
     {
         try
         {
             GetEq_Comment(info);
             pair.Value.Callback.NotifyStatusChanged(PcName, info);
         }
         catch
         { ;}
     }
 }
예제 #2
0
 public void GetEq_Comment(RegisterDeviceInfo info)
 {
     AmidaEntities db = new AmidaEntities();
     tblEQ data = db.tblEQ.Where<tblEQ>(n => n.eqi_id == info.PcName).FirstOrDefault<tblEQ>();
     if (data != null)
     {
         info.eq_comment = data.eq_comment;
         info.eq_area = data.eq_area;
         info.eq_prober = data.eq_prober;
         info.eq_type = data.eq_type;
     }
 }