private void BtnSaveSettings_Click(object sender, RoutedEventArgs e) { String[] startupSettings = { inputXMS.Text, inputXMX.Text, inputJarLocation.Text, checkboxAutoStart.IsChecked.ToString(), checkboxDebug.IsChecked.ToString() }; ConfigItem configItem = new ConfigItem { Name = "Startup", Items = startupSettings }; ConfigHandler.Add(configItem); ConfigHandler.Load(); Debug = (bool)checkboxDebug.IsChecked; }