Esempio n. 1
0
        private void crearToolStripMenuItem29_Click(object sender, EventArgs e)
        {
            if (Clases.Nivel_Acceso.ToUpper() == "O")
            {
                MessageBox.Show("No Tiene Acceso");
                return;
            }
            Alojamiento form = new Alojamiento("a", "");

            form.ShowDialog();
        }
Esempio n. 2
0
        void Modificar()
        {
            if (Clases.Nivel_Acceso.ToUpper() != "A" && Clases.Nivel_Acceso.ToUpper() != "E")
            {
                MessageBox.Show("No Tiene Acceso");
                return;
            }
            int i = Fila_Actual();

            Id = DG_Datos.Rows[i].Cells[0].Value.ToString().Trim();
            Alojamiento form = new Alojamiento("m", Id);

            if (form.ShowDialog() == DialogResult.OK)
            {
                Lee_Datos();
            }
        }