示例#1
0
        private void btn_tambah_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var frm = new FrmCustomerAdd()
            {
                Text = "Tambah Data Customer"
            };

            Helpers.Generic.ShowAdd(this, frm);
        }
示例#2
0
        private void btn_perbaiki_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            var index = gridView1.GetSelectedRows();
            var frm   = new FrmCustomerAdd()
            {
                Text        = "Perbaiki Data Customer",
                kd_customer = gridView1.GetRowCellValue(index[0], "kd_customer").ToString()
            };

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