示例#1
0
        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;
            }
        }
示例#2
0
        private void menuArchivo(object sender, EventArgs e)
        {
            Ayuda ayuda;
            print imprimir = new print();
            Cheque ch;
            switch (sender.ToString())
            {
                case "Nuevo":
                    limpiaFormulario();
                    break;
                case "Salir...":
                case "Salir":
                    this.Close();
                    break;
                case "Acerca De...":
                case "Acerca De":
                    ayuda = new Ayuda(tit);
                    ayuda.ShowDialog();
                    break;
                case "Imprimir...":
                case "Imprimir":
                    ch = validaCheque();
                    if (ch == null)
                        MessageBox.Show("Existen campos Vacios o erroneos", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    else
                        imprimir.imprimir(ch);

                break;
            }
        }
示例#3
0
文件: Notas.cs 项目: Juanirow/notcheq
        private void MenuAyuda(object sender, EventArgs e)
        {
            Ayuda ayuda;

            ayuda = new Ayuda(titulo);
            ayuda.ShowDialog();
        }