Exemplo n.º 1
0
        private void btnPerbaiki_Click(object sender, EventArgs e)
        {
            if (lvwProduct.SelectedItems.Count > 0)
            {
                var row     = lvwProduct.SelectedIndices[0];
                var product = _listOfProduct[row];

                var frmEntry = new FrmEntry(product, _controller);
                frmEntry.ShowDialog();
            }
            else // data belum dipilih
            {
                MessageBox.Show("Data belum dipilih");
            }
        }
Exemplo n.º 2
0
        private void btnTambah_Click(object sender, EventArgs e)
        {
            var frmEntry = new FrmEntry(_controller);

            frmEntry.ShowDialog();
        }