Esempio n. 1
0
        private void facturarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Invoicing frmFacturacion = new Invoicing();

            frmFacturacion.MdiParent = this;
            frmFacturacion.Show();
        }
Esempio n. 2
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            string user = txtUsuario.Text;
            string pass = txtContraseña.Text;

            if (checkData(user, pass))
            {
                if (user == "ventas")
                {
                    Order frmVentas = new Order();
                    frmVentas.Show();
                    this.Close();
                }
                else if (user == "asignacion")
                {
                    Assignment frmAsignador = new Assignment();
                    frmAsignador.Show();
                    this.Close();
                }
                else if (user == "facturacion")
                {
                    Invoicing frmFacturista = new Invoicing();
                    frmFacturista.Show();
                    this.Close();
                }
                else if (user == "consultas")
                {
                    Queries frmConsultas = new Queries();
                    frmConsultas.Show();
                    this.Close();
                }
                else if (user == "admin")
                {
                    MdiParent.MainMenuStrip.Enabled = true;
                    MdiParent.MainMenuStrip.Visible = true;
                    this.Close();
                }
            }
        }