Esempio n. 1
0
        private void btn_tambah_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var frm = new FrmKonsumenAdd()
            {
                Text = "Tambah Data Konsumen"
            };

            Helpers.Generic.ShowAdd(this, frm);
        }
Esempio n. 2
0
        private void btn_perbaiki_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var index = gridView1.GetSelectedRows();
            var frm   = new FrmKonsumenAdd()
            {
                Text        = "Perbaiki Data Konsumen",
                kd_konsumen = gridView1.GetRowCellValue(index[0], "kd_konsumen").ToString()
            };

            Helpers.Generic.ShowAdd(this, frm);
        }