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

            fileExplorer.Show();
            viewChange = true;
        }
        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();
        }