private void clickOpcion(object sender, EventArgs e) { Ayuda ayuda; Button boton = (Button)sender; Notas notas; FormCheque cheques; Configuracion con; switch (boton.AccessibleName) { case "Notas": this.Visible = false; notas = new Notas(titulo); notas.ShowDialog(); this.Visible = true; break; case "Cheques": this.Visible = false; cheques = new FormCheque(titulo); cheques.ShowDialog(); this.Visible = true; break; case "Configuracion": con = new Configuracion(titulo); con.ShowDialog(); break; case "Ayuda": ayuda = new Ayuda(titulo); ayuda.ShowDialog(); break; } }
public print() { InitializeComponent(); f = new Font("Arial", 9); conf = new Configuracion(" "); m = new Moneda(); }