Exemplo n.º 1
0
        }     //  end onCancel

        private void onFinished(object sender, EventArgs e)
        {
            //  Store data in biomass table
            //  Update bioList before saving to database
            updateBiomassList();

            CPbusinessLayer bslyr = new CPbusinessLayer();

            bslyr.fileName = fileName;
            bslyr.SaveBiomassData(bioList, tableExists);

            DialogResult dnr = MessageBox.Show("All edits are saved.\nOK to exit?", "INFORMATION", MessageBoxButtons.YesNo, MessageBoxIcon.Information);

            if (dnr == DialogResult.Yes)
            {
                Close();
                return;
            } //  endif
        }     //  end onFinished