public static string Verify(Options options) { if (options.Emulator == EmulatorType.Qemu && options.ImageFormat == ImageFormat.VDI) { return "QEMU does not support the VDI image format"; } if (options.Emulator == EmulatorType.Bochs && options.ImageFormat == ImageFormat.VDI) { return "Boches does not support the VDI image format"; } if (options.Emulator == EmulatorType.Bochs && options.ImageFormat == ImageFormat.VMDK) { return "Boches does not support the VMDK image format"; } if (options.Emulator == EmulatorType.VMware && options.ImageFormat == ImageFormat.IMG) { return "VMware does not support the IMG image format"; } if (options.Emulator == EmulatorType.VMware && options.ImageFormat == ImageFormat.VDI) { return "VMware does not support the VHD image format"; } return null; }
public MainForm() { InitializeComponent(); Options = new Options(); AppLocations = new AppLocations(); AppLocations.FindApplications(); Builder = new Builder(Options, AppLocations, this); }
public BaseLauncher(Options options, AppLocations appLocations) { Options = options; AppLocations = appLocations; Log = new List<string>(); }