Beispiel #1
0
        private void button_calcCF(object sender, EventArgs e)
        {
            String   nome         = textNome.Text;
            String   cognome      = textCognome.Text;
            String   comnas       = textLuogoNascita.Text;
            bool     m            = checkBoxMaschio.Checked;
            DateTime data_nascita = dateNascita.Value;

            textCodiceFiscale.Text = CodiceFiscale.calculate(nome, cognome, data_nascita, comnas, m);
        }
Beispiel #2
0
        static void Main()
        {
            Config.Init();

            Log.init(Config.Instance.LogLevel, Config.Instance.LogFilename);
            Log.Instance.WriteLine(Log.LogLevel.Always, "Program Started");

            CodiceFiscale.init();

            HibernateHelper.Init();
            DB.init();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());
        }