예제 #1
0
        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;
            }
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
        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;
            }
        }