예제 #1
0
        private void loadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filer.Form1 f        = new Filer.Form1();
            string      fileName = f.LoadFile();

            if (fileName != "")
            {
                fileName = new Sokoban.GetPath().GetTheDirectory() + "\\" + fileName;
                this.Ctl.Load(fileName);
            }
        }
예제 #2
0
        /*****************************Load Display**********************************************************************/
        private void openPToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.btnGridPanel.Controls.Clear();
            Filer.Form1 f        = new Filer.Form1();
            string      fileName = f.LoadFile();

            if (fileName != "")
            {
                fileName = new Sokoban.GetPath().GetTheDirectory() + "\\" + fileName;
                this.Ctl.Load(fileName);
            }
        }
예제 #3
0
파일: Form1.cs 프로젝트: Joe3Huang/Sokoban
        public void StartFiler()
        {
            Form filer = new Filer.Form1();

            filer.Show();
        }
예제 #4
0
 private void saveToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Filer.Form1 f = new Filer.Form1();
     this.Ctl.Save(f.SaveFile());
 }