示例#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();
            }
        }
示例#2
0
        // #####################
        // #### Risoluzione ####
        // #####################
        private void solveButton_Click(object sender, EventArgs e)
        {
            //Crea nuova istanza della classe per risolvere
            ext2fsSolve solveExt2fs = new ext2fsSolve();

            //Prova a risolvere
            try {
                solveExt2fs.solve(Convert.ToInt64(dimParTextbox.Text), Convert.ToInt64(dimBloccoTextbox.Text), Convert.ToInt64(dimInodeTextbox.Text),
                                  inodeKBRadioButton.Checked, inodeMBradioButton.Checked, Convert.ToInt64(numIndexPrinInodeTextbox.Text),
                                  Convert.ToInt64(numIndirCombobox.Text));
            }

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