dianyingyuan/MianForm.cs

(开头部分) 21KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;

namespace dianyingyuan
{
    public partial class MianForm : Form
    {
        Movie movie = null;
        /// <summary>
        /// 所有放映计划的集合
        /// </summary>
        Dictionary<string, Plan> myPlan = null;

        /// <summary>
        /// 所有电影的集合
        /// </summary>
        Dictionary<string, Movie> myMovies = new Dictionary<string, Movie>();
        public MianForm()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

            this.tsmiSiero.Enabled = false;

            InitMovies();
            CreateMovieTree();
            this.tsmiShuaxin.Enabled = false;

            BinaryFormatter bf = new BinaryFormatter();
            FileStream fs = null;
            try
            {
                fs = new FileStream("Sava.txt", FileMode.Open);
                this.myPlan = bf.Deserialize(fs) as Dictionary<string, Plan>;
            }
            catch (Exception ex)
            {

                MessageBox.Show(ex.Message);
            }
            finally
            {
                fs.Close();
            }


        }
        /// <summary>
        /// 读取XML 做电影对象 传到 电影集合
后面还有 661 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。