Esempio n. 1
0
        private void mnuPaletteOpen_Click(object sender, EventArgs e)
        {
            var _temp = ChooseFile.Open("Select a palette file", null, null, "ZSNES Savestate|*.zs?|Gens savestate|*.gs?|TileLayer Palette|*.tpl|All files|*.*");

            if (_temp == null)
            {
                return;
            }

            this.ColorsDock.AddPalette(_temp);
        }
Esempio n. 2
0
 private void mnuImageOpen_Click(object sender, EventArgs e)
 {
     try
     {
         var _temp = ChooseFile.Open("Select a media image", null, null, "All files|*.*|Super Famicom/SNES|*.smc;*.sfc|Megadrive/Genesis|*.smd;*.gen|GameGear|*.gg|Master System|*.sms|Super 32X|*.32x|Gameboy/GB Color|*.gb;*.gbc|Gameboy Advance|*.gba");
         if (_temp == null)
         {
             return;
         }
         this.OpenImage(_temp);
     }
     catch (Exception err)
     {
         Program.ExH.Summary(err);
     }
 }
Esempio n. 3
0
        private void mnuMapOpen_Click(object sender, EventArgs e)
        {
            try
            {
                var _temp = ChooseFile.Open("Select an image map", null, null, "Image Map|*.imp|All files|*.*");
                if (_temp == null)
                {
                    return;
                }

                this.MapDock.AddMap(_temp);
            }
            catch (Exception err)
            {
                Program.ExH.Summary(err);
            }
        }
Esempio n. 4
0
        private void mnuTableOpen_Click(object sender, EventArgs e)
        {
            try
            {
                var _temp = ChooseFile.Open("Select a text table", null, null, "Text table (Nightcrawler spec)|*.tbl|All files|*.*");
                if (_temp == null)
                {
                    return;
                }

                this.TextDock.AddTable(_temp);
            }
            catch (Exception err)
            {
                Program.ExH.Summary(err);
            }
        }