资源简介
电影院售票系统(C#)含 PPT详细解释

代码片段和文件信息
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();
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 189 2009-03-09 16:02 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\10-00 11-45 1-1.txt
文件 189 2008-01-08 10:08 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\10-00 11-45 2-4.txt
文件 189 2008-10-04 14:46 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\10-00 11-45 3-1.txt
文件 189 2008-10-04 14:46 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\10-00 11-45 3-3.txt
文件 204 2008-10-04 14:19 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\14-00 15-45 1-1.txt
文件 204 2008-10-04 14:19 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\14-00 15-45 1-5.txt
文件 198 2008-10-04 14:20 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\14-00 15-45 1-6.txt
文件 202 2008-01-08 10:03 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\14-00 15-45 2-3.txt
文件 204 2008-10-04 14:20 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\14-00 15-45 2-6.txt
文件 205 2008-10-04 14:20 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\14-00 15-45 2-7.txt
文件 198 2008-01-08 10:07 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\16-00 17-45 1-2.txt
文件 193 2007-12-17 16:17 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\16-00 17-45 1-3.txt
文件 193 2007-12-20 13:13 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 1-1.txt
文件 199 2008-10-04 14:21 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 1-2.txt
文件 193 2008-10-04 14:46 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 1-3.txt
文件 193 2008-10-04 14:46 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 2-3.txt
文件 193 2008-10-04 14:46 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 2-4.txt
文件 193 2008-10-04 14:47 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 2-5.txt
文件 193 2008-10-04 14:46 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 3-2.txt
文件 199 2008-10-04 14:21 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 4-5.txt
文件 187 2008-01-08 10:12 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\8-00 9-45 1-1.txt
文件 187 2008-01-08 10:11 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\8-00 9-45 2-2.txt
文件 40960 2008-10-04 14:40 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\MyCinema.exe
文件 5632 2005-11-11 22:25 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\MyCinema.vshost.exe
文件 40960 2007-11-14 10:53 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\SaleTicket.exe
文件 1525 2008-10-04 14:47 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\soldTickets.bin
文件 93696 2008-10-04 14:40 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\MyCinema.pdb
文件 93696 2007-11-14 10:53 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\SaleTicket.pdb
文件 893 2007-11-14 15:35 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\ShowList.xm
文件 571883 2007-11-14 09:17 电影院售票系统(C#)含解释\Source\MyCinema\MyCinema\bin\Debug\bone.jpg
............此处省略62个文件信息
- 上一篇:MotoManCOM32
- 下一篇:仿百度文库C#版本
相关资源
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 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#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
- 基于c#的实验室设备管理系统621530
- C# 使用ListView控件实现图片浏览器(源
- C#简单窗体聊天程序
- C#指纹识别系统程序 报告
- c# 高校档案信息管理系统
- c#向word文件插入图片
- C#左侧导航菜单(动态生成)
评论
共有 条评论