public OptionsForm(Options options) { InitializeComponent(); parentOptions = options; InitializeStates(); }
private void LoadOptions() { XmlSerializer serializer = new XmlSerializer(typeof(Options)); try { using (StreamReader reader = new StreamReader(optionsFile)) { options = (Options)serializer.Deserialize(reader); } } catch (FileNotFoundException) { options = new Options(); } }