Пример #1
0
 public frmFormulirKaryawan(frmKaryawan frm, string nik, string nama, string alamat, string instansi)
 {
     InitializeComponent();
     editMode         = true;
     this.nik         = nik;
     this.frm         = frm;
     this.Text        = "Edit Karyawan";
     txtNIK.Text      = nik;
     txtNama.Text     = nama;
     txtAlamat.Text   = alamat;
     txtInstansi.Text = instansi;
     txtNIK.Enabled   = false;
 }
Пример #2
0
 public frmFormulirKaryawan(frmKaryawan frm)
 {
     InitializeComponent();
     editMode         = false;
     this.nik         = "";
     this.frm         = frm;
     this.Text        = "Tambah Karyawan";
     txtNIK.Text      = "";
     txtNama.Text     = "";
     txtAlamat.Text   = "";
     txtInstansi.Text = "";
     txtNIK.ReadOnly  = false;
 }
Пример #3
0
 private void button4_Click(object sender, EventArgs e)
 {
     try {
         if (frmKaryawan.Visible == true)
         {
             frmKaryawan.Focus();
         }
         else
         {
             frmKaryawan = new frmKaryawan(this);
             frmKaryawan.ShowDialog();
         }
     } catch (Exception ex) {
         frmKaryawan = new frmKaryawan(this);
         frmKaryawan.ShowDialog();
     }
 }
Пример #4
0
 private void karyawanToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmKaryawan = new frmKaryawan(username);
     frmKaryawan.ShowDialog(this);
 }
 private void button3_Click(object sender, EventArgs e)
 {
     frm = new frmKaryawan(username, this);
     frm.ShowDialog(this);
 }