コード例 #1
0
        private void Start_Click(object sender, EventArgs e)
        {
            Start.Visible = false; // uniewidacznia przycisk Start
            Start.Enabled = false; // wyłącza przycisk Start
            Quit.Visible  = false; // analogicznie
            Quit.Enabled  = false;
            Help.Visible  = false;
            Help.Enabled  = false;

            panel1.Hide();
            pictureBox1.Hide();
            tableLayoutPanel2.Hide();
            tableLayoutPanel1.Hide();

            xml.Load(@"../../SaveFile.xml");
            xml.SelectSingleNode("/postac/save").Attributes["save"].Value = "0";
            xml.Save(@"../../SaveFile.xml");

            //File.Copy(@"MapTileData\maptiles" + MapName + ".txt", @"MapTileData\maptiles" + MapName + "_1.txt", true)
            foreach (var file in System.IO.Directory.GetFiles(@"MapTileData"))
            {
                if (!file.Contains("1_"))
                {
                    System.IO.File.Copy(file, System.IO.Path.Combine(@"MapTileData", "1_" + System.IO.Path.GetFileName(file)), true);
                }
            }

            Sound.StopSong();
            axWindowsMediaPlayer1.Visible = true;
            axWindowsMediaPlayer1.URL     = @"intro.mp4";
            axWindowsMediaPlayer1.Dock    = DockStyle.Fill;
        }
コード例 #2
0
        public Ending()
        {
            InitializeComponent();
            pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;

            Sound.StopSong();
        }