1. 首页
  2. 编程语言
  3. C#
  4. 北大青鸟检查套餐维护系统

北大青鸟检查套餐维护系统

上传者: 2019-04-01 12:59:09上传 RAR文件 237.4KB 热度 35次
int index = this.lvSets.SelectedItems[0].Index; FileStream fs = new FileStream("iteminfo.txt", FileMode.Create); StreamWriter sw = new StreamWriter(fs); switch (setName) { case "套餐A": sw.WriteLine("检查项目名称:{0}", setA.Items[index].Name); sw.WriteLine("功能描述:{0}", setA.Items[index].Description); sw.WriteLine("单价:{0}元", setA.Items[index].Price); break; case "套餐B": sw.WriteLine("检查项目名称:{0}", setB.Items[index].Name); sw.WriteLine("功能描述:{0}", setB.Items[index].Description); sw.WriteLine("单价:{0}元", setB.Items[index].Price); break; } sw.WriteLine("检查项目名称:{0}", setA.Items[index].Name); sw.WriteLine("功能描述:{0}", setA.Items[index].Description); sw.WriteLine("单价:{0}元", setA.Items[index].Price); break; case "套餐B": sw.WriteLine("检查项目名称:{0}", setB.Items[index].Name); sw.WriteLine("功能描述:{0}", setB.Items[index].Description); sw.WriteLine("单价:{0}元", setB.Items[index].Price); break; }
用户评论