Example #1
0
 private void btnSubmit2_Click(object sender, EventArgs e)
 {
     try
     {
         bool isSuccess = dcore.UpdatePersonUnit3(personShortDetailData.person.navyid, DataControls.GetSelectedValueComboBoxToString(cbbUnit2));
         if (isSuccess == true)
         {
             MessageBox.Show("แก้ไขข้อมูลสำเร็จ");
             personShortDetailData = dcore.GetPersonRequestDetail(navyid);
             InitialzeForm();
             //this.Close();
         }
         else
         {
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }