private void btnEditPub_Click(object sender, EventArgs e) { CreateEditMisc EditPublisherForm = new CreateEditMisc(1, grdPublisher.Rows[grdPublisher.CurrentCell.RowIndex].Cells[0].Value.ToString()); EditPublisherForm.ShowDialog(); publishersGridLoad(); }
private void btnNewPub_Click(object sender, EventArgs e) { CreateEditMisc CreatePublisherForm = new CreateEditMisc(0); CreatePublisherForm.ShowDialog(); publishersGridLoad(); }
private void btnNewContent_Click(object sender, EventArgs e) { try { //try load the form passing in the ListID from the currently selected list as a parameter CreateEditMisc CreateListContentForm = new CreateEditMisc(2, listID: grdLists.Rows[grdLists.CurrentCell.RowIndex].Cells[0].Value.ToString()); CreateListContentForm.ShowDialog(); listsGridLoad(); } catch { //load the form without the ListID if there is no selected record CreateEditMisc CreateListContentForm = new CreateEditMisc(2); CreateListContentForm.ShowDialog(); listsGridLoad(); } }
private void btnAdd_Click(object sender, EventArgs e) { CreateEditMisc CreatePublisherForm = new CreateEditMisc(0); CreatePublisherForm.ShowDialog(); }