Example #1
0
 private void btnAddLocation_Click(object sender, EventArgs e)
 {
     if (MsgBoxUtil.MsgSave())
     {
         insertLocation();
     }
 }
Example #2
0
 private void btnAddPerson_Click(object sender, EventArgs e)
 {
     if (txtEmployeeNumber.Text == "")
     {
         MsgBoxUtil.MsgInfo("Employee Number Belum Diisi!!");
         return;
     }
     if (txtEmployeeName.Text == "")
     {
         MsgBoxUtil.MsgInfo("Employee Name Belum Diisi!!");
         return;
     }
     if (txtPassword.Text == "")
     {
         MsgBoxUtil.MsgInfo("Password Belum Diisi!!");
         return;
     }
     if (cmbGender.Text == "")
     {
         MsgBoxUtil.MsgInfo("Gender Belum Diisi!!");
         return;
     }
     if (MsgBoxUtil.MsgSave())
     {
         insertPEA();
     }
 }
 private void btnUpdateLocation_Click(object sender, EventArgs e)
 {
     if (MsgBoxUtil.MsgSave())
     {
         updateLocation();
     }
 }