public OptionsForm(Options options)
        {
            InitializeComponent();

            parentOptions = options;
            InitializeStates();
        }
Example #2
0
 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();
     }
 }