private void btnBatal_Click(object sender, EventArgs e)
        {
            cleartxt();
            errorProvider1.Clear();
            this.Hide();
            FormPresensiInstruktur myParent = (FormPresensiInstruktur)this.Parent;

            myParent.enable();
        }
 private void btnTambah_Click(object sender, EventArgs e)
 {
     if (flagperintah == 1)
     {
         if (cektxt() == true)
         {
             errorProvider1.Clear();
             PresensiInstrukturEntity input = new
                                              PresensiInstrukturEntity(int.Parse(cmbIDPegawai.SelectedValue.ToString()), int.Parse(cmbJadwal.Text.ToString()), DateTime.Now, txtKeterangan.Text);
             con.EntryPresensiPegawai(input);
             //con.UpdatePointPegawai(con.GetPointPresensiById(con.GetLastIdPresensi()), int.Parse(cmbIDPegawai.SelectedValue.ToString()));
             cleartxt();
             this.Hide();
             FormPresensiInstruktur myParent = (FormPresensiInstruktur)this.Parent;
             myParent.enable();
         }
     }
 }