• 大小: 4.39MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-16
  • 语言: C#
  • 标签: C#  

资源简介

C#电影售票系统+2005Sql数据库 自改网上电影售票系统完善功能。最新出品,去年个人期末作业

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;

namespace Tickets
{
    /// 
    /// 电影院类
    /// 

    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();
            }
        }
    }
}

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

     文件      21552  2013-06-22 20:38  Tickets\Tickets\bin\Debug\image\1.jpg

     文件      30274  2013-07-04 22:46  Tickets\Tickets\bin\Debug\image\1942.jpg

     文件      28538  2013-06-22 20:13  Tickets\Tickets\bin\Debug\image\2.jpg

     文件      29557  2013-06-22 20:33  Tickets\Tickets\bin\Debug\image\3.jpg

     文件      25489  2013-06-22 20:16  Tickets\Tickets\bin\Debug\image\4.jpg

     文件      34609  2013-06-22 20:18  Tickets\Tickets\bin\Debug\image\5.jpg

     文件      26610  2013-06-22 20:20  Tickets\Tickets\bin\Debug\image\6.jpg

     文件      15988  2013-06-22 20:39  Tickets\Tickets\bin\Debug\image\7.jpg

     文件      26451  2013-06-22 20:32  Tickets\Tickets\bin\Debug\image\8.jpg

     文件      26460  2013-06-22 20:26  Tickets\Tickets\bin\Debug\image\9.jpg

    ..A.SH.     14848  2013-06-13 17:12  Tickets\Tickets\bin\Debug\image\Thumbs.db

     文件        308  2013-07-05 08:31  Tickets\Tickets\bin\Debug\soldTickets.bin

     文件    1370624  2013-12-26 21:16  Tickets\Tickets\bin\Debug\Tickets.exe

     文件     101888  2013-12-26 21:16  Tickets\Tickets\bin\Debug\Tickets.pdb

     文件      14328  2013-12-26 21:18  Tickets\Tickets\bin\Debug\Tickets.vshost.exe

     文件        490  2009-06-11 05:14  Tickets\Tickets\bin\Debug\Tickets.vshost.exe.manifest

     文件       1818  2013-06-21 10:50  Tickets\Tickets\Cinema.cs

     文件     102057  2008-09-13 20:51  Tickets\Tickets\img\1.ico

     文件      33731  2013-06-22 16:52  Tickets\Tickets\img\2.jpg

     文件      79143  2013-06-22 17:24  Tickets\Tickets\img\3320946_121605338383_2.jpg

     文件      74119  2013-06-22 17:59  Tickets\Tickets\img\4.jpg

     文件      45305  2013-06-22 18:00  Tickets\Tickets\img\6.jpg

     文件     142411  2013-06-22 17:04  Tickets\Tickets\img\Redocn_2013042417094237.jpg

    ..A.SH.      4608  2013-06-08 15:51  Tickets\Tickets\img\Thumbs.db

     文件      22963  2013-06-22 15:56  Tickets\Tickets\img\登录界面.jpg

     文件        228  2013-06-13 16:58  Tickets\Tickets\IPrintable.cs

     文件       1723  2013-07-03 20:40  Tickets\Tickets\loginForm.cs

     文件       7849  2013-06-22 17:22  Tickets\Tickets\loginForm.Designer.cs

     文件     194229  2013-06-22 17:22  Tickets\Tickets\loginForm.resx

     文件      16249  2013-07-04 23:10  Tickets\Tickets\MainForm.cs

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

评论

共有 条评论