Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        private void btnNewPub_Click(object sender, EventArgs e)
        {
            CreateEditMisc CreatePublisherForm = new CreateEditMisc(0);

            CreatePublisherForm.ShowDialog();
            publishersGridLoad();
        }
Esempio n. 3
0
 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();
     }
 }
Esempio n. 4
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            CreateEditMisc CreatePublisherForm = new CreateEditMisc(0);

            CreatePublisherForm.ShowDialog();
        }