示例#1
0
文件: Main.cs 项目: sigallie/Falcon20
        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();
        }
示例#2
0
文件: Main.cs 项目: sigallie/Falcon20
        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();
        }