Exemplo n.º 1
0
        /// <summary>
        /// 右键点击改台
        /// </summary>
        private void toolStripMenuItem8_Click(object sender, EventArgs e)
        {
            //获取当前的桌子状态
            var personsStatus = httpReq.HttpGet <List <Status> >("statuses");
            int people        = 0;

            if (personsStatus != null)
            {
                foreach (KeyValuePair <string, string> tableid in CurrentChooseDesk)
                {
                    Status s = personsStatus.Where(p => p.table.id == tableid.Key).FirstOrDefault();
                    if (s != null)
                    {
                        people = s.consumption.people;
                        PassValue.Tablename += " " + s.table.name;
                    }
                }
            }
            ChangeTable ct = new ChangeTable(people);

            ct.Owner = this;
            ct.ShowDialog();
        }
Exemplo n.º 2
0
 /// <summary>
 /// 右键点击改台
 /// </summary>
 private void toolStripMenuItem8_Click(object sender, EventArgs e)
 {
     //获取当前的桌子状态
     var personsStatus = httpReq.HttpGet<List<Status>>("statuses");
     int people = 0;
     if (personsStatus != null)
     {
         foreach (KeyValuePair<string, string> tableid in CurrentChooseDesk)
         {
             Status s = personsStatus.Where(p => p.table.id == tableid.Key).FirstOrDefault();
             if (s != null)
             {
                 people = s.consumption.people;
                 PassValue.Tablename += " " + s.table.name;
             }
         }
     }
     ChangeTable ct = new ChangeTable(people);
     ct.Owner = this;
     ct.ShowDialog();
 }