コード例 #1
0
        private void bLoadTexture_Click(object sender, EventArgs e)
        {
            Form fileExplorer = new FormFileExplorer("../textures/");

            fileExplorer.Show();
            viewChange = true;
        }
コード例 #2
0
        private void bLoad_Click(object sender, EventArgs e)
        {
            Form fileExplorer = new FormFileExplorer();

            fileExplorer.Show();
            //inputLB = new LockBitmap(new Bitmap("../input/test_256x256.png"), false);
            //inputLB = new LockBitmap(new Bitmap("../input/test_512x512.png"), false);
            //render(true);
            //timer1.Enabled = true;
        }
コード例 #3
0
        private void bLoadTexture_Click(object sender, EventArgs e)
        {
            var fileExplorer = new FormFileExplorer("../textures/");

            fileExplorer.FileSelectet += new FileSystemEventHandler(
                (object fssender, FileSystemEventArgs fse) =>
            {
                Program.MainForm.renderer.LoadTexture(fse.FullPath);
                Program.MainForm.Repainting = true;
            }
                );
            fileExplorer.Show();
        }
コード例 #4
0
        private void bLoad_Click(object sender, EventArgs e)
        {
            var fileExplorer = new FormFileExplorer("../maps/", "bmp,gif,exif,jpg,png,tiff");

            fileExplorer.FileSelectet += new FileSystemEventHandler(
                (object fssender, FileSystemEventArgs fse) =>
            {
                Program.MainForm.renderer.LoadMap(fse.FullPath);
                Program.MainForm.Repainting = true;
            }
                );
            fileExplorer.Show();
        }