Beispiel #1
0
        // #####################
        // #### Risoluzione ####
        // #####################
        private void solveButton_Click(object sender, EventArgs e)
        {
            //Crea nuova istanza della classe per risolvere
            fatSolve fatSolve = new fatSolve();

            //Prova a risolvere
            try {
                fatSolve.solve(Convert.ToInt64(dimParTextbox.Text), Convert.ToInt64(dimBloccoTextbox.Text), Convert.ToInt64(dimFileTextbox.Text),
                               BRadioButton.Checked, KBRadioButton.Checked, MBRadioButton.Checked, GBRadioButton.Checked);
            }

            //Gestisci l'eccezione da formato
            catch (System.FormatException) {
                eMessage.formatError();
            }
        }
        // #####################
        // #### Risoluzione ####
        // #####################
        private void solveButton_Click(object sender, EventArgs e) {

            //Crea nuova istanza della classe per risolvere
            fatSolve fatSolve = new fatSolve();

            //Prova a risolvere
            try {
                fatSolve.solve( Convert.ToInt64(dimParTextbox.Text), Convert.ToInt64(dimBloccoTextbox.Text), Convert.ToInt64(dimFileTextbox.Text),
                                BRadioButton.Checked, KBRadioButton.Checked, MBRadioButton.Checked, GBRadioButton.Checked );
            }

            //Gestisci l'eccezione da formato
            catch (System.FormatException) {
                eMessage.formatError();
            }
        }