예제 #1
0
        private void penjualanToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frm_transaksi frmtransaksi = new frm_transaksi();

            frmtransaksi.MdiParent = this;
            frmtransaksi.Show();
        }
예제 #2
0
        private void lst_pelanggan_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            frm_transaksi   frmtransaksi = new frm_transaksi();
            DataGridViewRow row          = this.lst_pelanggan.Rows[e.RowIndex];

            kodepelanggan = row.Cells["kode_pelanggan"].Value.ToString();
            namapelanggan = row.Cells["nama_pelanggan"].Value.ToString();
            this.Close();
        }
예제 #3
0
        private void lst_barang_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            frm_transaksi   frmtransaksi = new frm_transaksi();
            DataGridViewRow row          = this.lst_barang.Rows[e.RowIndex];

            kodebarang = row.Cells["kode_barang"].Value.ToString();
            namabarang = row.Cells["nama_barang"].Value.ToString();
            harga      = row.Cells["harga"].Value.ToString();
            stock      = row.Cells["stock"].Value.ToString();
            this.Close();
        }