private void UbahItemBtn_Click(object sender, EventArgs e) { if (view_TB_STB_PO_ProdukDataGridView.Rows.Count > 0) { Modul_Pembelian_InputBarangPopup inputBarangPopup = new Modul_Pembelian_InputBarangPopup(this); if (view_TB_STB_PO_ProdukDataGridView.DataSource != null) { int curentRow = view_TB_STB_PO_ProdukDataGridView.CurrentRow.Index; change_produkDataGridView(); inputBarangPopup.edit_item_row(view_TB_STB_PO_ProdukDataGridView.Rows[curentRow]); } else { inputBarangPopup.edit_item_row(view_TB_STB_PO_ProdukDataGridView.CurrentRow); } this.Enabled = false; inputBarangPopup.Show(); } }
private void TambahItemBtn_Click(object sender, EventArgs e) { Modul_Pembelian_InputBarangPopup inputBarangPopup = new Modul_Pembelian_InputBarangPopup(this); this.Enabled = false; inputBarangPopup.Show(); }
private void itemStockDataGridView_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { Modul_Pembelian_InputBarangPopup inputBarangPopup = new Modul_Pembelian_InputBarangPopup(this); inputBarangPopup.edit_item_row(view_TB_STB_PO_ProdukDataGridView.CurrentRow); this.Enabled = false; inputBarangPopup.Show(); }
private void itemStockDataGridView_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Enter) { Modul_Pembelian_InputBarangPopup inputBarangPopup = new Modul_Pembelian_InputBarangPopup(this); inputBarangPopup.edit_item_row(view_TB_STB_PO_ProdukDataGridView.CurrentRow); this.Enabled = false; inputBarangPopup.Show(); } }
public Modul_Barang_CariPopup(Modul_Pembelian_InputBarangPopup inputBarangPopup) { InitializeComponent(); this.KeyPreview = true; this.inputBarangPopup = inputBarangPopup; }