Esempio n. 1
0
        public Form1()
        {
            InitializeComponent();
            SettingData sd = SettingData.load();

            types_              = sd.types;
            encrypt             = IdEncryption.StringConstructor(sd.selectedEnc);
            encryptId           = sd.encryptId;
            ambiguousBirthDate  = sd.ambiguousBirthDate;
            ambiguousPostalCode = sd.ambiguousPostalCode;
            bdmod = BirthDateModifier.TypedConstructor(sd.birthDateModifyType);
            pcmod = PostalCodeModifier.TypedConstructor(sd.postalCodeModifyType);
            if (encrypt.isBlank())
            {
                button5_Click(null, null);
            }
        }
Esempio n. 2
0
        private void button5_Click(object sender, EventArgs e)
        {
            SettingDialog sd = new SettingDialog();

            DialogResult sdRes = sd.ShowDialog();

            if (sdRes == DialogResult.Cancel)
            {
                sd.Dispose();
                return;
            }

            string encryptString = sd.getEncryptionString();

            encrypt            = IdEncryption.StringConstructor(encryptString);
            encryptId          = sd.getEncryptId();
            ambiguousBirthDate = sd.getAmbiguousBirthDate();
            bdmod = BirthDateModifier.TypedConstructor(sd.getBirthDateModifyType());
            ambiguousPostalCode = sd.getAmbiguousPostalCode();
            pcmod = PostalCodeModifier.TypedConstructor(sd.getPostalCodeModifyType());
            sd.Dispose();
        }