private void Btn_Add_Click(object sender, EventArgs e) { AdminAddBalanceDataForm add = new AdminAddBalanceDataForm(); add.Show(); add.label1.Text = "Tambah Data"; }
private void Btn_Update_Click(object sender, EventArgs e) { var id = userId; if (id == null) { MessageBox.Show("Pilih kasir terlebih dahulu"); } else { AdminAddBalanceDataForm dataForm = new AdminAddBalanceDataForm(); dataForm.Show(); dataForm.tbId.Text = id; dataForm.tbUsername.Text = username; dataForm.tbPassword.Text = password; dataForm.tbName.Text = name; dataForm.tbAddress.Text = address; dataForm.tbPhone.Text = phone; dataForm.label1.Text = "Ubah Data"; } }