资源简介
非常好的影院售票系统,适合初学者学习.net,c#,ado.net,三层架构等
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
namespace MyCinema
{
public class Cinema
{
public Cinema()
{
seats = new Dictionary();
soldTickets = new List();
schedule = new Schedule();
}
private Dictionary seats;
public Dictionary Seats
{
get { return seats; }
set { seats = value; }
}
private Schedule schedule;
public Schedule Schedule
{
get { return schedule; }
set { schedule = value; }
}
private List soldTickets;
public List SoldTickets
{
get { return soldTickets; }
set { soldTickets = value; }
}
public void Save()
{
FileStream fs = new FileStream(“soldTickets.bin“ FileMode.Create);
BinaryFormatter bf = new BinaryFormatter();
bf.Serialize(fs SoldTickets);
fs.Close();
}
public void Load()
{
try
{
FileStream fs = new FileStream(“soldTickets.bin“ FileMode.Open);
BinaryFormatter bf = new BinaryFormatter();
this.SoldTickets = (List)bf.Deserialize(fs);
fs.Close();
}
catch (Exception ex)
{
ex.ToString();
soldTickets = new List();
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 913 2007-11-14 11:02 MyCinema\MyCinema.sln
.....H. 36864 2008-06-27 22:20 MyCinema\MyCinema.suo
....... 4086 2007-11-14 14:09 MyCinema\MyCinema\all.cd
....... 1706 2007-12-17 14:56 MyCinema\MyCinema\Cinema.cs
....... 1640 2007-12-17 14:35 MyCinema\MyCinema\FreeTicket.cs
....... 229 2008-01-08 09:59 MyCinema\MyCinema\IPrintable.cs
....... 10708 2008-01-08 10:11 MyCinema\MyCinema\MainForm.cs
....... 32184 2008-01-08 10:09 MyCinema\MyCinema\MainForm.Designer.cs
....... 6376 2008-01-08 10:09 MyCinema\MyCinema\MainForm.resx
....... 1815 2007-12-17 14:34 MyCinema\MyCinema\Movie.cs
....... 3703 2007-11-14 13:16 MyCinema\MyCinema\MyCinema.csproj
....... 555 2007-11-14 11:03 MyCinema\MyCinema\MyCinema.csproj.user
....... 470 2007-11-14 11:03 MyCinema\MyCinema\Program.cs
....... 3528 2008-01-08 10:00 MyCinema\MyCinema\Schedule.cs
....... 808 2008-01-08 10:00 MyCinema\MyCinema\ScheduleItem.cs
....... 894 2008-01-08 10:01 MyCinema\MyCinema\Seat.cs
....... 1810 2008-01-08 10:01 MyCinema\MyCinema\StudentTicket.cs
....... 2382 2008-01-08 09:55 MyCinema\MyCinema\Ticket.cs
....... 901 2008-01-08 10:01 MyCinema\MyCinema\TicketFactory.cs
....... 189 2008-01-08 10:08 MyCinema\MyCinema\bin\Debug\10-00 11-45 2-4.txt
....... 202 2008-01-08 10:03 MyCinema\MyCinema\bin\Debug\14-00 15-45 2-3.txt
....... 198 2008-01-08 10:07 MyCinema\MyCinema\bin\Debug\16-00 17-45 1-2.txt
....... 193 2008-06-27 22:17 MyCinema\MyCinema\bin\Debug\16-00 17-45 1-3.txt
....... 193 2007-12-20 13:13 MyCinema\MyCinema\bin\Debug\18-00 19-45 1-1.txt
....... 193 2008-01-08 10:11 MyCinema\MyCinema\bin\Debug\18-00 19-45 2-4.txt
....... 187 2008-01-08 10:12 MyCinema\MyCinema\bin\Debug\8-00 9-45 1-1.txt
....... 187 2008-01-08 10:11 MyCinema\MyCinema\bin\Debug\8-00 9-45 2-2.txt
....... 571883 2007-11-14 09:17 MyCinema\MyCinema\bin\Debug\bone.jpg
....... 11983 2007-11-14 09:17 MyCinema\MyCinema\bin\Debug\gongfu.jpg
....... 40960 2008-01-08 10:11 MyCinema\MyCinema\bin\Debug\MyCinema.exe
............此处省略44个文件信息
- 上一篇:c# 如何播放MP3文件
- 下一篇:C#利用IC卡制作考勤程序
相关资源
- C# 调用win32 api函数-user32.dll详细说明
- C# 调用BarTender打印条码DEMO
- ASP.NET程序开发范例宝典 百度云
- asp.net FileUpload 上传进度条
- 大型比赛竞赛抽签系统 可打印 c# vs
- 很好用的一个asp.net反编译软件
- C#编写的Gerber查看器
- lua C# .Net4.0 vs2010 LuaInterface
- asp.net实现qq登陆
- C#十六进制编辑器
- 明华URF-35H读卡器 C#读写源码 为大家
- C#文件流读取CSV文件
- c#读写PDF文件sql
- C# winform Socket大文件传输
- c#车牌识别系统附30张测试图片
- 《C#面向对象程序设计》源代码(CS)
- 金旭亮《C#面向对象程序设计》教案
- 试题库管理系统毕业论文(C#)源程序
- 学校网站原代码(C#.NET)
- C#-数据库操作技术-员工管理系统
- c#web开发入门经典
- C#与Matlab混合编程的几种方式
- c# 开发与 mysql数据库实现的增删改查
- C#异步操作 异步查询数据库 异步处理
- Basler相机通过IO触发源码
- 亮剑asp.net案例导航项目开发
- 亮剑ASP.NET项目开发案例导航-part03共三
- [源代码] 《领域驱动设计 (C# 2008 实
- 松下PLC与C#通讯串口调试入门教程.z
- USB 继电器控制器 LCUS-1 保证能用 c#
评论
共有 条评论