• 大小: 3.24MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-12
  • 语言: 其他
  • 标签: 北大青鸟  .NET  s2  

资源简介

北大青鸟S2.NET影院售票系统开发(完整源代码) 北大青鸟S2.NET影院售票系统开发(完整源代码) 北大青鸟S2.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();
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     569533  2007-10-26 11:49  影院售票系统\Source\image\bone.jpg

     文件       8376  2007-10-25 15:52  影院售票系统\Source\image\gongfu.jpg

     文件       8686  2007-10-26 11:49  影院售票系统\Source\image\spiderman3.jpg

    ..A.SH.     14848  2008-09-26 17:19  影院售票系统\Source\image\Thumbs.db

     文件       4086  2007-11-14 14:09  影院售票系统\Source\MyCinema\MyCinema\all.cd

     文件        189  2008-01-08 10:08  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\10-00 11-45 2-4.txt

     文件        189  2008-10-04 14:46  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\10-00 11-45 3-1.txt

     文件        189  2008-10-04 14:46  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\10-00 11-45 3-3.txt

     文件        204  2008-10-04 14:19  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\14-00 15-45 1-1.txt

     文件        204  2008-10-04 14:19  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\14-00 15-45 1-5.txt

     文件        198  2008-10-04 14:20  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\14-00 15-45 1-6.txt

     文件        202  2008-01-08 10:03  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\14-00 15-45 2-3.txt

     文件        204  2008-10-04 14:20  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\14-00 15-45 2-6.txt

     文件        205  2008-10-04 14:20  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\14-00 15-45 2-7.txt

     文件        198  2008-01-08 10:07  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\16-00 17-45 1-2.txt

     文件        193  2007-12-17 16:17  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\16-00 17-45 1-3.txt

     文件        193  2007-12-20 13:13  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 1-1.txt

     文件        199  2008-10-04 14:21  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 1-2.txt

     文件        193  2008-10-04 14:46  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 1-3.txt

     文件        193  2008-10-04 14:46  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 2-3.txt

     文件        193  2008-10-04 14:46  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 2-4.txt

     文件        193  2008-10-04 14:47  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 2-5.txt

     文件        193  2008-10-04 14:46  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 3-2.txt

     文件        199  2008-10-04 14:21  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\18-00 19-45 4-5.txt

     文件        187  2008-01-08 10:12  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\8-00 9-45 1-1.txt

     文件        187  2008-01-08 10:11  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\8-00 9-45 2-2.txt

     文件     571883  2007-11-14 09:17  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\bone.jpg

     文件      11983  2007-11-14 09:17  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\gongfu.jpg

     文件      40960  2008-10-04 14:40  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\MyCinema.exe

     文件      93696  2008-10-04 14:40  影院售票系统\Source\MyCinema\MyCinema\bin\Debug\MyCinema.pdb

............此处省略64个文件信息

评论

共有 条评论