private void PopMaterialId() { int count = MaterialIdList.Count; if (count > 0) { MaterialIdList.RemoveAt(count - 1); } }