Exemplo n.º 1
0
        private void btnNewClient_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            if (ClassDBUtils.IsAllowed(ClassGenLib.username, "ADD NEW CLIENT") == false)
            {
                MessageBox.Show("Access denied! Insufficient rights to perform the function.", "Falcon", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }

            NewClient client = new NewClient("0");

            client.ShowDialog();
        }
Exemplo n.º 2
0
        private void navBarItem1_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            if (ClassDBUtils.IsAllowed(ClassGenLib.username, "EDIT CLIENT DETAILS") == false)
            {
                MessageBox.Show("Access denied! Insufficient rights to perform the function.", "Falcon", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }

            ClientListing lst = new ClientListing();

            lst.ShowDialog();

            NewClient client = new NewClient(GenLib.ClassGenLib.selectedClient);

            client.ShowDialog();
        }