private void kembali() { updateData formUpdate = new updateData(); formUpdate.Close(); this.Close(); }
private void update_button_Click(object sender, EventArgs e) { updateData formUpdate = new updateData(); formUpdate.Show(); formUpdate.trx_textbox.Text = transaksi; formUpdate.nama_textbox.Text = namaPasien; formUpdate.keluhan_textbox.Text = keluhanPasien; formUpdate.resep_textbox.Text = ResepPasien; formUpdate.harga_textbox.Text = hargaPasien; }
private void listView1_SelectedIndexChanged(object sender, EventArgs e) { updateData formUpdate = new updateData(); ListView.SelectedIndexCollection row = listView1.SelectedIndices; if (row.Count == 1) { ListViewItem item = listView1.Items[row[0]]; transaksi = item.SubItems[1].Text; namaPasien = item.SubItems[2].Text; keluhanPasien = item.SubItems[3].Text; ResepPasien = item.SubItems[5].Text; hargaPasien = item.SubItems[6].Text; } }