Exemplo n.º 1
0
 public void btnNew_Click(object sender, EventArgs e)
 {
     try
     {
         mSetPublishTime = new SetPublishTime();
         mSetPublishTime.ShowDialog();
         if (mSetPublishTime.DialogResult == DialogResult.Cancel)
         {
             loadGrid();
         }
         ContentMenuUtil contentMenu = new ContentMenuUtil(new LstMenu());
         contentMenu.createContentMenu(ref pan, "go");
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Exemplo n.º 2
0
 public void btnEdit_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvPublishTime.Rows.Count > 0)
         {
             if (dgvPublishTime.CurrentRow.Cells[0].Value != null)
             {
                 SetPublishTime mSetPublishTime = new SetPublishTime((long)dgvPublishTime.CurrentRow.Cells[0].Value);
                 mSetPublishTime.ShowDialog();
                 if (mSetPublishTime.DialogResult == DialogResult.Cancel)
                 {
                     loadGrid();
                 }
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }