Esempio n. 1
0
 public void OnReceiveCancleOrder(stCancelOrderConsignmentUserCmd_CS cmd)
 {
     for (int i = 0; i < m_mySaleList.Count; i++)
     {
         stUserAccountConsignmentUserCmd_S.SelfOrder data = m_mySaleList[i];
         if (data.index == cmd.index)
         {
             m_mySaleList.RemoveAt(i);
         }
     }
     DispatchValueUpdateEvent(new ValueUpdateEventArgs(SaleDispatchEvents.RefreshAccountInfo.ToString(), null, null));
 }
Esempio n. 2
0
    void CancleOrderClick(GameObject go)
    {
        string name  = go.transform.parent.name;
        uint   index = 0;

        if (uint.TryParse(name, out index))
        {
            if (index < SaleDataManager.MySaleList.Count)
            {
                stUserAccountConsignmentUserCmd_S.SelfOrder data = SaleDataManager.MySaleList[(int)index];
                stCancelOrderConsignmentUserCmd_CS          cmd  = new stCancelOrderConsignmentUserCmd_CS();
                cmd.index = data.index;
                NetService.Instance.Send(cmd);
            }
        }
    }
Esempio n. 3
0
 public void OnReceiveCancleOrder(stCancelOrderConsignmentUserCmd_CS cmd)
 {
     DataManager.Manager <SaleMoneyDataManager>().OnReceiveCancleOrder(cmd);
 }