private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); OptionsManager opm = new OptionsManager(); opm.LoadOptions(); BinFile bFile = new BinFile(); LabelContainer lContainer = new LabelContainer(); Disassembler dsembler = new Disassembler(bFile, lContainer); Assembler asmbler = new Assembler(lContainer); MainForm mainForm = new MainForm(bFile, dsembler, asmbler, lContainer); mainForm.GetOptions(opm.options); dsembler.GetOptions(opm.options); asmbler.GetOptions(opm.options); Application.Run(mainForm); mainForm.SetOptions(opm.options); dsembler.SetOptions(opm.options); asmbler.SetOptions(opm.options); opm.SaveOptions(); }