示例#1
0
        private void ethnicityToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!Jarvis.CurrentUser.UserHasPermissionForAction("Admin", "View"))
            {
                return;
            }
            EthnicityEdit ab = new EthnicityEdit();

            ab.ShowDialog();
            if (ab.DialogResult == DialogResult.OK)
            {
                if (Application.OpenForms["StudentAddEdit"] as StudentAddEdit != null)
                {
                    StudentAddEdit frm1 = (StudentAddEdit)Application.OpenForms["StudentAddEdit"];
                    frm1.PopulateEthnicityComboBox();
                }
            }
        }
        private void ethnicityToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EthnicityEdit ab = new EthnicityEdit();

            ab.ShowDialog();
        }