Exemple #1
0
        private void btn_tambah_Click_1(object sender, EventArgs e)
        {
            if ((txt_gajipokok.Text == "") || (txt_tunjangan.Text == ""))
            {
                MessageBox.Show("Data Harus Terisi Semua ");
            }

            frm_tmbh_gaji tmbh_gj = new frm_tmbh_gaji();

            if (tmbh_gj.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show("Input Data Barang Sukses");
                binding();
            }

            DialogResult dialogresult = MessageBox.Show("Apakah Anda Akan Menambah Data Lagi", "Pesan", MessageBoxButtons.YesNo);

            if (dialogresult == DialogResult.Yes)
            {
                if (tmbh_gj.ShowDialog() == DialogResult.OK)
                {
                    MessageBox.Show("Input Data Barang Sukses");
                    binding();
                }
            }
        }
Exemple #2
0
        private void btn_tambah_Click(object sender, EventArgs e)
        {
            frm_tmbh_gaji frm_tmbh = new frm_tmbh_gaji();

            if (frm_tmbh.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show("Data berhasil ditambahkan", "pesan");
                binding();
            }
        }