private void navBarItem4_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { PL.RetuenPruChase.FrmPurReturn frm = new PL.RetuenPruChase.FrmPurReturn(); try { frm.txtId.Text = ClsRetb.PurReturnItemsMaxId().Rows[0][0].ToString(); frm.BtnNew.Enabled = false; frm.BtnAdd.Enabled = true; } catch { return; } frm.MdiParent = this; frm.Show(); }
private void barButtonItem27_ItemClick(object sender, ItemClickEventArgs e) { PL.RetuenPruChase.FrmPurReturn frm = new PL.RetuenPruChase.FrmPurReturn(); try { frm.txtId.Text = ClsRetb.PurReturnItemsMaxId().Rows[0][0].ToString(); frm.BtnNew.Enabled = false; frm.BtnAdd.Enabled = true; } catch { return; } frm.MdiParent = this; frm.Show(); }