/// <summary> /// 选择餐桌类型或者区域时调用 /// </summary> public void TypeItemSelectionChanged() { //MessageBox.Show("确定要对进行开台吗?" + TypeSelectedItem.Name + TypeSelectedItem.Id, "提示", MessageBoxButton.YesNo); if (TypeSelectedItem.Id == -1) { InitTableLocationItemData(1); } else { List <Table> tables = _TableStatusService.GetTableAndRefByTypeId(TypeSelectedItem.Id); TableItems.Clear(); LoaderTableItem(tables); } }