private void exportToolStripMenuItem1_Click(object sender, EventArgs e) { if (folderBrowserDialog1.ShowDialog() == DialogResult.OK) { loadedFile.WritePackToDirectory(folderBrowserDialog1.SelectedPath); } }
static void Main(String[] args) { if (args.Length != 0) { string f = args[0]; if (f == "-help") { Console.WriteLine("ResourceViewer.exe [packfile] [output directory]"); return; } PackFile p = new PackFile(f); p.WritePackToDirectory(args[1]); return; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); }
static void Main(String[] args) { if (args.Length != 0) { string f = args[0]; if(f == "-help") { Console.WriteLine("ResourceViewer.exe [packfile] [output directory]"); return; } PackFile p = new PackFile(f); p.WritePackToDirectory(args[1]); return; } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); }