Ejemplo n.º 1
0
        private void btnInput_Click_1(object sender, EventArgs e)
        {
            FrmEntryMobil frmEntry = new FrmEntryMobil("Tambah Data Mobil", controller);

            frmEntry.OnCreate += OnCreateEventHandler;

            frmEntry.ShowDialog();
        }
Ejemplo n.º 2
0
        private void btnEdit_Click_1(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count > 0)
            {
                tbl_mobil mobil = listOftbl_mobil[listView1.SelectedIndices[0]];

                FrmEntryMobil frmEntry = new FrmEntryMobil("Edit Data Mobil", mobil, controller);

                frmEntry.OnUpdate += OnUpdateEventHandler;

                frmEntry.ShowDialog();
            }
            else
            {
                MessageBox.Show("Data belum dipilih", "Peringatan", MessageBoxButtons.OK,
                                MessageBoxIcon.Exclamation);
            }
        }