public void LockPedDetails(bool disable)
 {
     if (disable)
     {
         text_arrestee_dob.Disable();
         text_arrestee_home_address.Disable();
         text_arrestee_last_name.Disable();
         text_arrestee_first_name.Disable();
     }
     else
     {
         text_arrestee_dob.Enable();
         text_arrestee_home_address.Enable();
         text_arrestee_last_name.Enable();
         text_arrestee_first_name.Enable();
     }
 }
 private void LockControls()
 {
     if (Report == null)
     {
         return;
     }
     text_arrest_time.Disable();
     text_arrest_date.Disable();
     if (Report.ReadOnly)
     {
         text_arrestee_dob.Disable();
         text_arrestee_home_address.Disable();
         text_arrestee_last_name.Disable();
         text_arrestee_first_name.Disable();
         text_arrest_street.Disable();
         text_arrest_city.Disable();
         text_arrest_time.Disable();
         text_arrest_date.Disable();
     }
 }
Esempio n. 3
0
 private void LockControls(bool disable = true)
 {
     if (Report == null)
     {
         return;
     }
     if (!Report.IsNew && disable)
     {
         tb_dob.Disable();
         tb_firstName.Disable();
         tb_lastName.Disable();
         cb_type.Disable();
         btn_addPartyToReport.Disable();
         btn_addPartyToReport.Hide();
     }
     else
     {
         tb_dob.Enable();
         tb_firstName.Enable();
         tb_lastName.Enable();
         cb_type.Enable();
     }
 }