private void btnSearch_Click(object sender, EventArgs e) { try { FindBase L_FindBase = new FindBase("LMS_Book", new setBook()); L_FindBase.ShowDialog(); if (L_FindBase.DialogResult == DialogResult.OK) { setBook msetBook = (setBook)L_FindBase.DynObject; dgvLibrary.DataSource = mMasterBLL.searchData("LMS_Book", mBook); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public void btnNew_Click(object sender, EventArgs e) { try { msetBook = new setBook(); msetBook.ShowDialog(); if (msetBook.DialogResult == DialogResult.Cancel) { loadGrid(); } ContentMenuUtil contentMenu = new ContentMenuUtil(new LstMenu()); contentMenu.createContentMenu(ref pan, "go"); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public void btnEdit_Click(object sender, EventArgs e) { try { if (dgvLibrary.Rows.Count > 0) { if (dgvLibrary.CurrentRow.Cells[0].Value != null) { setBook msetBook = new setBook((long)dgvLibrary.CurrentRow.Cells[0].Value); msetBook.ShowDialog(); if (msetBook.DialogResult == DialogResult.Cancel) { loadGrid(); } } } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }