private void button1_Click(object sender, EventArgs e)
        {
            DateTime min      = this.dateMin.Value;
            DateTime max      = this.dateMax.Value;
            Conexion conexion = new Conexion();

            conexion.guardarLimites(min.ToString(), max.ToString());



            LibroDiario libroDiario = new LibroDiario(padre);

            libroDiario.Show();
            this.Hide();
        }
예제 #2
0
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     if (!this.conexion.hayFechaLimite())
     {
         FechaMaxMin fecha = new FechaMaxMin(this.padre);
         fecha.Show();
         this.Hide();
     }
     else
     {
         LibroDiario elementoContable = new LibroDiario(this.padre);
         elementoContable.Show();
         this.Hide();
     }
 }
        private void abrirLibroDiario(object sender, EventArgs e)
        {
            Conexion conexion = new Conexion();

            if (!conexion.hayFechaLimite())
            {
                FechaMaxMin fecha = new FechaMaxMin(this);
                fecha.Show();
                this.Hide();
            }
            else
            {
                LibroDiario elementoContable = new LibroDiario(this);
                elementoContable.Show();
                this.Hide();
            }
        }
        public void guardar()
        {
            LibroDiario libroDiario = new LibroDiario(this);

            libroDiario.ShowDialog();
        }