资源简介
非常好的影院售票系统,适合初学者学习.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# TIP文件生成和拆解
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- Asp.net学生信息管理系统源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- ASP.NET实验室预约管理系统
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 020ASP.NET车辆综合管理系统.zip
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
评论
共有 条评论