Exemple #1
0
        private void Btn_Add_Click(object sender, EventArgs e)
        {
            AdminAddCustomerForm add = new AdminAddCustomerForm();

            add.Show();
            add.label1.Text = "Tambah Data";
        }
Exemple #2
0
        private void Btn_Update_Click(object sender, EventArgs e)
        {
            var id = userId;

            if (id == null)
            {
                MessageBox.Show("Pilih kasir terlebih dahulu");
            }
            else
            {
                AdminAddCustomerForm dataForm = new AdminAddCustomerForm();

                dataForm.Show();
                dataForm.tbId.Text    = id;
                dataForm.tbName.Text  = name;
                dataForm.tbClass.Text = userClass;

                dataForm.label1.Text = "Ubah Data";
            }
        }