static int Main(string[] args) { // Test if input arguments were supplied: if (args.Length < 2) { System.Console.WriteLine("CBD UI file generator v0.4"); System.Console.WriteLine("Please enter input folder and binary UI package output."); System.Console.WriteLine("Usage: UIgenerator <input folder> <output UI binary> "); return(1); } // Get the images. Packer packer = new Packer(); int result = packer.GenerateUI(args[0], args[1]); if (result < 0) { System.Console.WriteLine("UI generation failed!", result); return(0); } else { System.Console.WriteLine("UI file generated with {0} images", result); return(0); } }