private void button5_Click(object sender, EventArgs e) { Aceptar obj = new Aceptar(); DialogResult dg = new DialogResult(); dg = obj.ShowDialog(); if (dg == DialogResult.OK) { AbrirFormulario <Reportes>(); button6.Enabled = true; } }
private void button6_Click(object sender, EventArgs e) { Aceptar obj = new Aceptar(); DialogResult dg = new DialogResult(); dg = obj.ShowDialog(); if (dg == DialogResult.OK) { AbrirFormulario <USUARIOS>(); button6.Enabled = false; } }
private void button2_Click(object sender, EventArgs e) { DateTime time = DateTime.Parse(String.Format("{0} 15:00:00", DateTime.Now.ToShortDateString())); /*if (DateTime.Now < time) * { * MessageBox.Show("Disponible despues de las 3 de la tarde", "", MessageBoxButtons.OK, MessageBoxIcon.Information); * return; * }*/ Aceptar obj = new Aceptar(); DialogResult dg = new DialogResult(); dg = obj.ShowDialog(); if (dg == DialogResult.OK) { AbrirFormulario <CORTE_DE_CAJA>(); button6.Enabled = true; } }