Exemplo n.º 1
0
        public void btnFrontPage_Click_1(object sender, EventArgs e)
        {
            Form frm = null;

            switch (this.LoginRole)
            {
            case Role.Admin:
                frm = new BuyerAccountForm();
                break;

            case Role.Buyer:
                frm = new Report.BuyerReportForm();
                break;

            case Role.Supplier:
                frm = new Report.SupplierReportForm();
                break;

            default:
                break;
            }
            this.pnlMenuHighlight.Top = 0;
            this.NextForm((BaseForm)frm);
        }
Exemplo n.º 2
0
        private void btnBuyerAccount_Click(object sender, EventArgs e)
        {
            BuyerAccountForm frm = new BuyerAccountForm();

            this.NextForm(frm);
        }