Пример #1
0
        private void DG_Datos_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int                i    = Fila_Actual();
            string             id   = DG_Datos.Rows[i].Cells[0].Value.ToString().Trim();
            Mant_Mantenimiento form = new Mant_Mantenimiento("m", id);

            form.ShowDialog();
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            int                i    = Fila_Actual();
            string             id   = DG_Datos.Rows[i].Cells[0].Value.ToString().Trim();
            Mant_Mantenimiento form = new Mant_Mantenimiento("d", id);

            form.ShowDialog();
        }
Пример #3
0
        private void crearToolStripMenuItem24_Click(object sender, EventArgs e)
        {
            if (Clases.Nivel_Acceso.ToUpper() == "O")
            {
                MessageBox.Show("No Tiene Acceso");
                return;
            }
            Mant_Mantenimiento form = new Mant_Mantenimiento("a", "");

            form.ShowDialog();
        }
Пример #4
0
        private void DG_Datos_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                int                i    = Fila_Actual();
                string             id   = DG_Datos.Rows[i].Cells[0].Value.ToString().Trim();
                Mant_Mantenimiento form = new Mant_Mantenimiento("m", id);
                form.ShowDialog();

                return;
            }
        }