Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
            FrmHome frmhomre = new FrmHome();

            frmhomre.Show();
        }
Ejemplo n.º 2
0
        private void autenticaUsuario()
        {
            DaoLogin daoLogin = new DaoLogin();

            u.Nome  = Usuariotxb.Text;
            u.Senha = Senhatxb.Text;

            FrmMensagemCampoObrigatorio frmMsgCampoObrigatorio    = (FrmMensagemCampoObrigatorio)Application.OpenForms["FrmMensagemCampoObrigatorio"];
            FrmMensagemCampoObrigatorio frmMsgCampoObrigatorioMsg = new FrmMensagemCampoObrigatorio();

            if (daoLogin.AutenticarUsuario(u))
            {
                this.Hide();
                FrmHome home = new FrmHome();
                home.Closed += (s, args) => this.Close();
                home.ShowDialog();
            }
            else
            {
                frmMsgCampoObrigatorioMsg.MensagemCampoObrigatorioLbl.Text = "Dados Incorretos";
                frmMsgCampoObrigatorioMsg.ShowDialog();
                Usuariotxb.Focus();
                Usuariotxb.Clear();
                Senhatxb.Clear();
            }
        }
Ejemplo n.º 3
0
        private void btnLog_Click(object sender, EventArgs e)
        {
            if (chkAdmin.Checked)
            {
                Database.arRecord = Database.ds.Tables["Tabel_user"].Select("username = '******' and password = '******' and status = 'admin'");
                if (Database.arRecord.Length != 0)
                {
                    FrmAwalAdmin frmAdmin;
                    frmAdmin = new FrmAwalAdmin();
                    frmAdmin.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("Username belum terdaftar");
                }
            }
            else
            {
                Database.arRecord = Database.ds.Tables["Tabel_user"].Select("username = '******' and password = '******' and status = 'member'");

                if (Database.arRecord.Length != 0)
                {
                    FrmHome frmHome;
                    frmHome = new FrmHome();
                    frmHome.Show();
                    this.Hide();
                }
                else
                {
                    MessageBox.Show("Username belum terdaftar");
                }
            }
        }
        private void LblCancelar_Click(object sender, EventArgs e)
        {
            this.Hide();
            var frmHome = new FrmHome();

            frmHome.ShowDialog();
        }
Ejemplo n.º 5
0
        private void LblEntrar_Click(object sender, EventArgs e)
        {
            //Obtengo el rol que seleccionó el usuario
            var selectedRole = (Rol)CboRoles.SelectedItem;

            if (selectedRole != null)
            {
                var dialogAnswer = MessageBox.Show(string.Format("Se procederá a logear con el siguiente rol: {0}. Esta seguro?", selectedRole.Descripcion), "Atención", MessageBoxButtons.YesNo);
                if (dialogAnswer == DialogResult.Yes)
                {
                    Hide();

                    //Seteo el rol en sesión
                    SessionManager.CurrentRol = selectedRole;

                    //Muestro la home
                    var home = new FrmHome();
                    home.ShowDialog();

                    Close();
                }
            }
            else
            {
                MessageBox.Show("Primero debe seleccionar un rol.", "Atención");
            }
        }
Ejemplo n.º 6
0
        private void button3_Click_1(object sender, EventArgs e)
        {
            FrmHome frmHome = new FrmHome();

            frmHome.Show();
            this.Close();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            FrmHome inicio = new FrmHome();

            inicio.Show();
            this.Close();
        }
Ejemplo n.º 8
0
        public int buscar(FrmHome vista)
        {
            aprendiz.Correo   = ((TextBox)vista.Page.Form.FindControl("txtEmailLogin")).Text;
            aprendiz.Password = ((TextBox)vista.Page.Form.FindControl("txtPasswordLogin")).Text;
            int buscar = listaAprendiz.Buscar(aprendiz);

            return(buscar);
        }
Ejemplo n.º 9
0
        private void btnIngresar_Click(object sender, EventArgs e)
        {
            FrmHome frmHome = new FrmHome();

            this.Hide();

            frmHome.ShowDialog();

            this.Show();
        }
Ejemplo n.º 10
0
        /// <summary>
        /// 打开主界面
        /// </summary>
        public void OpenHome()
        {
            string uniqueKey = FrmHome.UniqueKey;

            if (FrmMainFrame.superTabControlManager.GetTab(uniqueKey) == null)
            {
                FrmHome frm = new FrmHome();
                FrmMainFrame.superTabControlManager.CreateTab(frm.Text, uniqueKey, frm, true, false);
            }
            else
            {
                FrmMainFrame.superTabControlManager.ChangeToTab(uniqueKey);
            }
        }
Ejemplo n.º 11
0
        private void btnIngresar_Click(object sender, EventArgs e)
        {
            string username = txtUsuario.Text;
            string clave    = txtContraseña.Text;

            if (usuarioVal.verificaAcceso(username, clave))
            {
                this.Hide();
                FrmHome frmHome = new FrmHome();
                frmHome.FormClosed += (s, args) => this.Close();
                frmHome.Show();
            }
            else
            {
                MessageBox.Show("usuario Incorrecto");
            }
        }
Ejemplo n.º 12
0
        private void btnXemBaoCao_Click(object sender, EventArgs e)
        {
            bool isValidatePass = this.ValidateInputs();

            if (!isValidatePass)
            {
                return;
            }

            this.Hide();
            FrmHome home = this.Owner as FrmHome;
            RptCTTM rpt  = new RptCTTM();

            this.fillReportUser(rpt);
            home.ucReport1.printControl1.PrintingSystem = rpt.PrintingSystem;
            rpt.CreateDocument();
            home.xtraTabControl1.SelectedTabPageIndex = 4;
            home.xtraTabControl1.TabPages[4].Text     = "Xem trước Bảng kê tồn quỹ tiền mặt cuối ngày";
        }
Ejemplo n.º 13
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            QLThuChi.Dao.ThuChi.userDataTable userDataTable = new QLThuChi.Dao.ThuChi.userDataTable();
            string username  = txtUsername.Text;
            string password  = CommonUtil.GetMd5Hash(txtPassword.Text);
            int    userCount = userTableAdapter.getUserByUsernameAndPassword(userDataTable, username, password);

            if (userCount == 0)
            {
                MessageBox.Show("Tên đăng nhập hoặc Mật khẩu không đúng. Xin vui lòng thử lại.", "Lỗi đăng nhập",
                                MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else
            {
                this.Hide();
                FrmHome home = new FrmHome();
                home.UserId        = userDataTable[0].UserId;
                home.LoginFullName = userDataTable[0].FullName;
                home.LoginUserCode = userDataTable[0].Code;
                home.IsAdmin       = userDataTable[0].IsAdmin;
                home.Show();
            }
        }
        private void LblGrabar_Click(object sender, EventArgs e)
        {
            try
            {
                #region Validations

                var exceptionMessage = string.Empty;

                if (string.IsNullOrEmpty(TxtRazonSocial.Text))
                {
                    exceptionMessage += "La razón social de la empresa no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtMail.Text))
                {
                    exceptionMessage += "El mail de la empresa no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtTelefono.Text))
                {
                    exceptionMessage += "El telefono de la empresa no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtDireccion.Text))
                {
                    exceptionMessage += "La dirección de la empresa no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtCodigoPostal.Text))
                {
                    exceptionMessage += "El código postal de la empresa no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtCiudad.Text))
                {
                    exceptionMessage += "La ciudad de la empresa no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtCuit.Text))
                {
                    exceptionMessage += "El CUIT de la empresa no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtNombreContacto.Text))
                {
                    exceptionMessage += "El nombre de contacto de la empresa no puede ser vacío.\n";
                }

                if (!string.IsNullOrEmpty(exceptionMessage))
                {
                    throw new Exception(exceptionMessage);
                }



                #endregion

                if (insertMode)
                {
                    if (EmpresaPersistance.GetByBusinessName(TxtRazonSocial.Text, this.currentTransaction) != null)
                    {
                        throw new Exception("Ya existe una empresa con la razón social ingresada.");
                    }

                    if (EmpresaPersistance.GetByCUIT(TxtCuit.Text, this.currentTransaction) != null)
                    {
                        throw new Exception("Ya existe una empresa con el CUIT ingresado.");
                    }

                    #region Inserto la nueva empresa

                    var company = new Empresa();
                    company.IdUsuario      = SessionManager.CurrentUser.ID;
                    company.RazonSocial    = TxtRazonSocial.Text;
                    company.Mail           = TxtMail.Text;
                    company.Telefono       = TxtTelefono.Text;
                    company.Direccion      = TxtDireccion.Text;
                    company.CodigoPostal   = TxtCodigoPostal.Text;
                    company.Ciudad         = TxtCiudad.Text;
                    company.CUIT           = TxtCuit.Text;
                    company.NombreContacto = TxtNombreContacto.Text;
                    company.FechaCreacion  = DtpFechaCreacion.Value;

                    var dialogAnswer = MessageBox.Show("Esta seguro que quiere insertar la nueva empresa?", "Atencion", MessageBoxButtons.YesNo);
                    if (dialogAnswer == DialogResult.Yes)
                    {
                        //Si es el administrador el que hace el Alta, se genera un usuario con password temporal
                        if (insertDefaultUser)
                        {
                            var user = new Usuario();
                            user.Username = company.CUIT;
                            user.Password = SHA256Helper.Encode("temporal");
                            var userIngresado = UsuarioPersistance.InsertUserTemporal(user, this.currentTransaction);

                            company.IdUsuario = userIngresado.ID;
                            EmpresaPersistance.InsertCompany(company, this.currentTransaction);
                            this.currentTransaction.Commit();

                            var rol = RolPersistance.GetByName("Empresa");
                            RolPersistance.InsertUserRole(userIngresado, rol, null);
                        }
                        else
                        {
                            EmpresaPersistance.InsertCompany(company, this.currentTransaction);
                            this.currentTransaction.Commit();
                        }

                        MessageBox.Show("La Empresa ha sido ingresada con éxito.", "Atención!");
                        this.Hide();
                        if (!_abmEmpresa)
                        {
                            var frmHome = new FrmHome();
                            frmHome.ShowDialog();
                        }
                    }

                    #endregion
                }
                else
                {
                    var company = new Empresa();
                    company.IdUsuario      = CurrentEmpresa.IdUsuario;
                    company.RazonSocial    = TxtRazonSocial.Text;
                    company.Mail           = TxtMail.Text;
                    company.Telefono       = TxtTelefono.Text;
                    company.Direccion      = TxtDireccion.Text;
                    company.CodigoPostal   = TxtCodigoPostal.Text;
                    company.Ciudad         = TxtCiudad.Text;
                    company.CUIT           = TxtCuit.Text;
                    company.NombreContacto = TxtNombreContacto.Text;
                    company.FechaCreacion  = DtpFechaCreacion.Value;

                    var dialogAnswer = MessageBox.Show("Esta seguro que quiere modificar la empresa?", "Atencion", MessageBoxButtons.YesNo);
                    if (dialogAnswer == DialogResult.Yes)
                    {
                        EmpresaPersistance.UpdateCompany(company);
                        CompleteAction = true;
                        this.Hide();
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Atención");
            }
        }
        private void LblGrabar_Click(object sender, EventArgs e)
        {
            try
            {
                #region Validaciones

                var exceptionMessage = string.Empty;

                if (string.IsNullOrEmpty(TxtNombre.Text))
                {
                    exceptionMessage += "El nombre del cliente no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtApellido.Text))
                {
                    exceptionMessage += "El apellido del cliente no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(CboTipoDocumento.Text))
                {
                    exceptionMessage += "El tipo de documento del cliente no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtDocumento.Text))
                {
                    exceptionMessage += "El número de documento del cliente no puede ser vacío.\n";
                }
                else
                {
                    int nroDoc;
                    if (!int.TryParse(TxtDocumento.Text, out nroDoc))
                    {
                        exceptionMessage += "El número de documento del cliente no es válido.\n";
                    }
                }

                if (string.IsNullOrEmpty(TxtMail.Text))
                {
                    exceptionMessage += "El mail del cliente no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtTelefono.Text))
                {
                    exceptionMessage += "El teléfono del cliente no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtDireccion.Text))
                {
                    exceptionMessage += "La dirección del cliente no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtCodigoPostal.Text))
                {
                    exceptionMessage += "El código postal del cliente no puede ser vacío.\n";
                }

                if (string.IsNullOrEmpty(TxtCuil.Text))
                {
                    exceptionMessage += "El CUIL del cliente no puede ser vacío.\n";
                }
                else
                {
                    if (!TypesHelper.IsCUITValid(TxtCuil.Text))
                    {
                        exceptionMessage += Environment.NewLine + "El CUIL no es válido.\n";
                    }
                }

                if (!string.IsNullOrEmpty(exceptionMessage))
                {
                    throw new Exception(exceptionMessage);
                }

                #endregion

                if (insertMode)
                {
                    //Valido que no se dupliquen los telefonos ni documentos
                    if (ClientePersistance.GetByPhone(TxtTelefono.Text, this.currentTransaction) != null)
                    {
                        throw new Exception("Ya existe un cliente con el teléfono ingresado.");
                    }

                    if (ClientePersistance.GetByDocument((int)CboTipoDocumento.SelectedValue, Int32.Parse(TxtDocumento.Text), this.currentTransaction) != null)
                    {
                        throw new Exception("Ya existe un cliente con el tipo y número de documento ingresados.");
                    }

                    #region Inserto el nuevo cliente

                    var client = new Cliente();
                    client.IdUsuario       = SessionManager.CurrentUser.ID;
                    client.Nombre          = TxtNombre.Text;
                    client.Apellido        = TxtApellido.Text;
                    client.TipoDocumento   = (int)CboTipoDocumento.SelectedValue;
                    client.NroDocumento    = Int32.Parse(TxtDocumento.Text);
                    client.Mail            = TxtMail.Text;
                    client.Telefono        = TxtTelefono.Text;
                    client.Direccion       = TxtDireccion.Text;
                    client.CodigoPostal    = TxtCodigoPostal.Text;
                    client.CUIL            = TxtCuil.Text;
                    client.FechaNacimiento = DtpFechaNacimiento.Value;

                    var dialogAnswer = MessageBox.Show("¿Está seguro que quiere insertar el nuevo cliente?", "Atencion", MessageBoxButtons.YesNo);
                    if (dialogAnswer == DialogResult.Yes)
                    {
                        //Si es el administrador el que hace el Alta, se genera un usuario con password temporal
                        if (insertDefaultUser)
                        {
                            var user = new Usuario();
                            user.Username = client.NroDocumento.ToString();
                            user.Password = SHA256Helper.Encode("temporal");
                            var userIngresado = UsuarioPersistance.InsertUserTemporal(user, this.currentTransaction);

                            client.IdUsuario = userIngresado.ID;
                            ClientePersistance.InsertClient(client, this.currentTransaction);
                            this.currentTransaction.Commit();

                            var rol = RolPersistance.GetByName("Cliente");
                            RolPersistance.InsertUserRole(userIngresado, rol, null);
                        }
                        else
                        {
                            ClientePersistance.InsertClient(client, this.currentTransaction);
                            this.currentTransaction.Commit();
                        }

                        MessageBox.Show("El Cliente ha sido ingresado con éxito.", "Atención!");
                        this.Hide();
                        if (!_abmCliente)
                        {
                            var frmHome = new FrmHome();
                            frmHome.ShowDialog();
                        }
                    }

                    #endregion
                }
                else
                {
                    if (TxtTelefono.Text != CurrentCliente.Telefono)
                    {
                        if (ClientePersistance.GetByPhone(TxtTelefono.Text, this.currentTransaction) != null)
                        {
                            throw new Exception("Ya existe un cliente con el teléfono ingresado.");
                        }
                    }

                    var client = new Cliente();
                    client.IdUsuario       = CurrentCliente.IdUsuario;
                    client.Nombre          = TxtNombre.Text;
                    client.Apellido        = TxtApellido.Text;
                    client.TipoDocumento   = (int)CboTipoDocumento.SelectedValue;
                    client.NroDocumento    = Convert.ToInt32(TxtDocumento.Text);
                    client.Mail            = TxtMail.Text;
                    client.Telefono        = TxtTelefono.Text;
                    client.Direccion       = TxtDireccion.Text;
                    client.CodigoPostal    = TxtCodigoPostal.Text;
                    client.CUIL            = TxtCuil.Text;
                    client.FechaNacimiento = DtpFechaNacimiento.Value;

                    var dialogAnswer = MessageBox.Show("¿Está seguro que quiere modificar el cliente?", "Atención", MessageBoxButtons.YesNo);
                    if (dialogAnswer == DialogResult.Yes)
                    {
                        ClientePersistance.UpdateClient(client);
                        CompleteAction = true;
                        this.Hide();
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Atención");
            }
        }
Ejemplo n.º 16
0
        private void activarFormulario(int tag)
        {
            this.Cursor = Cursors.WaitCursor;
            Form formularioActivo = MdiChildren.FirstOrDefault(fo => Convert.ToInt32(fo.Tag) == tag);

            if (formularioActivo == null)
            {
                Form formularioVisualizar = null;


                if (tag == 1001)
                {
                    formularioVisualizar     = new FrmHome();
                    PanelSelInicio.BackColor = Color.FromArgb(128, 191, 255);
                }

                if (tag == 1002)
                {
                    PanelSelProyectos.BackColor = Color.FromArgb(128, 191, 255);
                }

                if (tag == 1003)
                {
                    PanelSelTareas.BackColor = Color.FromArgb(128, 191, 255);
                }

                if (tag == 1004)
                {
                    PanelSelColaboradores.BackColor = Color.FromArgb(128, 191, 255);
                }

                if (formularioVisualizar != null)
                {
                    formularioVisualizar.MdiParent = this;
                    formularioVisualizar.Dock      = DockStyle.Fill;
                    formularioVisualizar.Show();
                }
            }
            else
            {
                if (tag == 1001)
                {
                    PanelSelInicio.BackColor = Color.FromArgb(128, 191, 255);
                }

                if (tag == 1002)
                {
                    PanelSelProyectos.BackColor = Color.FromArgb(128, 191, 255);
                }

                if (tag == 1003)
                {
                    PanelSelTareas.BackColor = Color.FromArgb(128, 191, 255);
                }

                if (tag == 1004)
                {
                    PanelSelColaboradores.BackColor = Color.FromArgb(128, 191, 255);
                }

                formularioActivo.Activate();
            }
            this.Cursor = Cursors.Default;
        }
Ejemplo n.º 17
0
        private void DoLogin(string userName, string password)
        {
            try
            {
                //Realizo validaciones de datos ingresados
                if (string.IsNullOrEmpty(userName))
                {
                    throw new Exception("El usuario no puede ser vacío.");
                }

                if (string.IsNullOrEmpty(password))
                {
                    throw new Exception("La contraseña no puede ser vacía.");
                }

                //Valido que los datos del usuario ingresados sean correctos
                var user = UsuarioPersistance.Login(userName, password);

                //El usuario no se encuentra habilitado
                if (!user.Habilitado)
                {
                    throw new Exception("No puede loguearse. El usuario se encuentra inhabilitado debido a que acumula más de 10 compras sin rendir. Por favor, acérquese a la oficina de administración.");
                }

                //Pregunto si por lo menos tiene un rol asignado que se encuentre activo
                if (user.RolesActivos != null)
                {
                    //Seteo el usuario en sesion
                    SessionManager.CurrentUser = user;

                    //Mientras que el usuario posea una contraseña temporal, lo obligo a que la cambie
                    while (SessionManager.CurrentUser.PassTemporal)
                    {
                        MessageBox.Show("Posee una contraseña temporal. Debera cambiarla a continuacion.", "Atención");

                        //Muestro el formulario para el cambio de contraseña
                        var resetPassword = new FrmResetPassword();
                        resetPassword.ShowDialog();

                        //Refresco el currentUser por si ya lo modificó
                        SessionManager.CurrentUser = UsuarioPersistance.GetByUsername(SessionManager.CurrentUser.Username);
                    }

                    Hide();

                    if (user.RolesActivos.Count > 1)
                    {
                        //Posee mas de un rol activo asignado, debe seleccionar uno solo
                        var chooseRol = new FrmChooseRol();
                        chooseRol.ShowDialog();
                    }
                    else
                    {
                        //Posee un unico rol asignado activo. Lo seteo en sesion.
                        SessionManager.CurrentRol = user.RolesActivos.First();

                        //Muestro el formulario de home
                        var home = new FrmHome();
                        home.ShowDialog();
                    }

                    Close();
                }
                else
                {
                    throw new Exception("El usuario no cuenta con roles que se encuentren activos.");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Atención");
            }
        }
Ejemplo n.º 18
0
        private void LblGrabar_Click(object sender, EventArgs e)
        {
            try
            {
                #region Validaciones
                var exceptionMessage = string.Empty;

                if (string.IsNullOrEmpty(TxtUsuario.Text))
                {
                    throw new Exception("El usuario no puede ser vacío.");
                }

                if (string.IsNullOrEmpty(TxtContrasena.Text))
                {
                    throw new Exception("La contraseña no puede ser vacía.");
                }

                if (UsuarioPersistance.GetByUsername(TxtUsuario.Text) != null)
                {
                    exceptionMessage += Environment.NewLine + "Ya existe un usuario con el nombre ingresado.";
                }


                if (!string.IsNullOrEmpty(exceptionMessage))
                {
                    throw new Exception(exceptionMessage);
                }
                #endregion

                #region Inserto el nuevo usuario

                var user = new Usuario();
                user.Username = TxtUsuario.Text;
                user.Password = SHA256Helper.Encode(TxtContrasena.Text);

                var dialogAnswer = MessageBox.Show("Esta seguro que quiere insertar el nuevo usuario?", "Atencion", MessageBoxButtons.YesNo);
                if (dialogAnswer == DialogResult.Yes)
                {
                    using (var transaction = DataBaseManager.Instance().Connection.BeginTransaction(IsolationLevel.Serializable))
                    {
                        if (_abmEmpresa || _abmCliente)
                        {
                            user = UsuarioPersistance.InsertUserTemporal(user, transaction);
                        }
                        else
                        {
                            user = UsuarioPersistance.InsertUser(user, transaction);
                        }

                        Rol selectedRol = (Rol)CboRoles.SelectedItem;
                        RolPersistance.InsertUserRole(user, selectedRol, transaction);

                        if (!_abmEmpresa && !_abmCliente)
                        {
                            //Cargo los datos en sesion
                            SessionManager.CurrentUser = user;
                            SessionManager.CurrentRol  = selectedRol;
                            SessionManager.CurrentRol.Funcionalidades = FuncionalidadPersistance.GetByRole(SessionManager.CurrentRol, transaction);
                        }

                        switch (selectedRol.Descripcion)
                        {
                        case "Cliente":
                            this.Hide();
                            var frmABMInsertUpdateCliente = new FrmABMInsertUpdateCliente(transaction, _abmCliente, user);
                            frmABMInsertUpdateCliente.ShowDialog();
                            break;

                        case "Empresa":
                            this.Hide();
                            var frmABMInsertUpdateEmpresa = new FrmABMInsertUpdateEmpresa(transaction, _abmEmpresa, user);
                            frmABMInsertUpdateEmpresa.ShowDialog();
                            break;

                        default:
                            transaction.Commit();
                            this.Hide();
                            var frmHome = new FrmHome();
                            frmHome.ShowDialog();
                            break;
                        }
                    }
                }
                #endregion
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Atención");
            }
        }
Ejemplo n.º 19
0
        private void tsbRiBaoBiao_Click(object sender, EventArgs e)
        {
            FrmHome frmHome = new FrmHome();

            frmHome.ShowDialog();
        }