예제 #1
0
        private void btnInput_Click(object sender, EventArgs e)
        {
            FrmEntryPakaetsewa frmEntry = new FrmEntryPakaetsewa("Tambah Data Paket", controller);

            frmEntry.OnCreate += OnCreateEventHandler;

            frmEntry.ShowDialog();
        }
예제 #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count > 0)
            {
                tbl_paketsewa paket = listOfPaketsewa[listView1.SelectedIndices[0]];

                FrmEntryPakaetsewa frmEntry = new FrmEntryPakaetsewa("Edit Data Paket", paket, controller);

                frmEntry.OnUpdate += OnUpdateEventHandler;

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