private void SaveConfiguration() { try { ConfigSerializer serializer = devicePlugin.GetConfigSerializer(); // Update Configuration File if (serializer != null) { // Update Data: EXPIRATION MASKING serializer.user_configuration.expiration_masking = this.cBxExpirationMask.Checked; // PAN Clear Digits serializer.user_configuration.pan_clear_digits = Convert.ToInt32(this.txtPAN.Text); // Swipe Force Mask serializer.user_configuration.swipe_force_mask.track1 = this.cBxTrack1.Checked; serializer.user_configuration.swipe_force_mask.track2 = this.cBxTrack2.Checked; serializer.user_configuration.swipe_force_mask.track3 = this.cBxTrack3.Checked; serializer.user_configuration.swipe_force_mask.track3card0 = this.cBxTrack3Card0.Checked; // Swipe Mask serializer.user_configuration.swipe_mask.track1 = this.cBxSwipeMaskTrack1.Checked; serializer.user_configuration.swipe_mask.track2 = this.cBxSwipeMaskTrack2.Checked; serializer.user_configuration.swipe_mask.track3 = this.cBxSwipeMaskTrack3.Checked; // WRITE to Config serializer.WriteConfig(); } } catch (Exception exp) { Debug.WriteLine("main: SaveConfiguration() - exception={0}", (object)exp.Message); } }