Ejemplo n.º 1
0
        // begin with the list of functions of forms
        public void SaveTheForm(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Do you want to save?", "Save", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                // used to create GUIElements
                string GUIObjectName = ((Button)sender).Name;

                // update the DataSet with values of Fields
                DataSetUpdater DataSetUpdater = new DataSetUpdater();
                DataSetUpdater.AcceptDataSetChanges(GUIObjectName);
            }
        }