Ejemplo n.º 1
0
 private void OnTableInfoEvent(System.Object Target)
 {
     CMD_GR_TableInfo Obj = (CMD_GR_TableInfo)Target;
     foreach(var item in Obj.ItemArray)
     {
         mTableList.Add(item);
     }
     if (OnTableEvent != null)
     {
         TableEvent ev = new TableEvent();
         ev.EventID = ENUM_TABLE_EVENT.TABLE_INIT_EVENT;
         OnTableEvent(ev);
     }
 }
Ejemplo n.º 2
0
 private void OnTableStatusEvent(System.Object Target)
 {
     CMD_GR_TableStatus Obj = (CMD_GR_TableStatus)Target;
     if (Obj.wTableID >= mTableList.Count)
         return;
     mTableList[Obj.wTableID] = Obj.TableStatus;
     if (OnTableEvent != null)
     {
         TableEvent ev = new TableEvent();
         ev.EventID = ENUM_TABLE_EVENT.TABLE_UPDATE_EVENT;
         ev.wTableID = Obj.wTableID;
         ev.TableStatus = Obj.TableStatus;
         OnTableEvent(ev);
     }
 }