private void CierresVer_Click(object sender, EventArgs e)
        {
            this.Close();
            Main_Comprobantes aux = new Main_Comprobantes();

            aux.Show();
        }
 private void Aceptar_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Cambiar el Destino de los Comprobantes?", "Confirmar", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         if (!String.IsNullOrEmpty(textBox2.Text))
         {
             Global.setDire(textBox2.Text);
         }
         string aux  = textBox2.Text + "\\Diario\\";
         string aux1 = textBox2.Text + "\\Mensual\\";
         string aux2 = textBox2.Text + "\\Liquidaciones\\";
         string aux3 = textBox2.Text + "\\LiquidacionesLibros\\";
         Directory.CreateDirectory(aux);
         Directory.CreateDirectory(aux1);
         Directory.CreateDirectory(aux2);
         Directory.CreateDirectory(aux3);
         this.Close();
         Main_Comprobantes frm4 = new Main_Comprobantes();
         frm4.Show();
     }
     else
     {
         // user clicked no
     }
 }
        private void Comprobantes_Click(object sender, EventArgs e)
        {
            this.Hide();
            Main_Comprobantes aux = new Main_Comprobantes();

            aux.Show();
        }
Esempio n. 4
0
        private void Cerrar_Click(object sender, EventArgs e)
        {
            this.Close();
            //string name, string price, string teacher, string amount, string clasesTotal)
            Main_Comprobantes frm4 = new Main_Comprobantes();

            frm4.Show();
        }