Exemple #1
0
 private void hacerFacturaToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Nivel > 1)
     {
         frmFacturacion pF = new frmFacturacion();
         pF.Show();
     }
     else
     {
         MessageBox.Show("No tienes acceso,contacta el administrador del sistema", "Menu", MessageBoxButtons.OK, MessageBoxIcon.Hand);
     }
 }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count == 1)
     {
         frmFacturacion f = new frmFacturacion();
         f.getID = dataGridView1.CurrentRow.Cells[12].Value.ToString();
         f.ShowDialog();
     }
     else
     {
         MessageBox.Show("No se ha seleccionado ningun Estudiante", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }