Пример #1
0
 private void btnSavePhoto_Click(object sender, EventArgs e)
 {
     if (validPhoto == true)
     {
         try
         {
             DLL.EditPhoto(txtID.Text, image);
             DLL.LogChanges(txtID.Text, txtFirstName.Text, txtLastName.Text, txtAge.Text, txtState.Text, txtCity.Text, txtAddress.Text, txtZip.Text, txtGradutated.Text, txtAdmin.Text, txtWork.Text, txtSalary.Text, txtEducation.Text, txtStory.Text, txtShare.Text);
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message, "An unexpected error occured while saving changes.", MessageBoxButtons.OK, MessageBoxIcon.Error);
             return;
         }
         Disable();
     }
 }