private void bbi_Add_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmMATERIALADD frm = new frmMATERIALADD(); frm.ShowDialog(); ReadData(); }
private void bbi_Edit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { int id = 0; if (this.gridView1.RowCount <= 0) { return; } id = ToolHelper.ConvertToInt(this.gridView1.GetFocusedRowCellValue("MATERIALNO").ToString()); if (id < 1) { MessageBox.Show("请选择需要修改的材料!", "提示信息"); return; } else { frmMATERIALADD frm = new frmMATERIALADD(id, StatusClass.Edit); frm.ShowDialog(); ReadData(); } }