Exemple #1
0
        private void EmployeeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Staff.Employee.EmployeesList form = new Staff.Employee.EmployeesList();
            bool allowed = Compas.Logic.Security.CurrentSecurityContext.Principal.OpperationAllowed(form.Name);

            if (allowed == true)
            {
                form.MdiParent = this;
                form.Show();
            }
            else
            {
                MessageBox.Show("Дія заборонена. Зверніться до адміністратора.");
            }
        }
Exemple #2
0
        private void EmployeeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Staff.Employee.EmployeesList form = new Staff.Employee.EmployeesList();
            bool allowed = Compas.Logic.Security.CurrentSecurityContext.Principal.OpperationAllowed(form.Name);

            if (allowed == true)
            {

                form.MdiParent = this;
                form.Show();
            }
            else
            {
                MessageBox.Show("Дія заборонена. Зверніться до адміністратора.");

            }
        }
Exemple #3
0
 private void EmployeeMI_Click(object sender, EventArgs e)
 {
     Staff.Employee.EmployeesList form = new Staff.Employee.EmployeesList();
     form.ShowDialog();
 }
Exemple #4
0
 private void EmployeeMI_Click(object sender, EventArgs e)
 {
     Staff.Employee.EmployeesList form = new Staff.Employee.EmployeesList();
     form.ShowDialog();
 }