Example #1
0
        private void PositionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Staff.Position.PositionsList form = new Staff.Position.PositionsList();

            bool allowed = Compas.Logic.Security.CurrentSecurityContext.Principal.OpperationAllowed(form.Name);

            if (allowed == true)
            {
                form.MdiParent = this;
                //form.WindowState = FormWindowState.Maximized;
                try
                {
                    form.Show();
                }
                catch { }
            }
            else
            {
                MessageBox.Show("Дія заборонена");
            }
        }
Example #2
0
        private void PositionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Staff.Position.PositionsList form = new Staff.Position.PositionsList();

            bool allowed = Compas.Logic.Security.CurrentSecurityContext.Principal.OpperationAllowed(form.Name);

            if (allowed == true)
            {
                form.MdiParent = this;
                //form.WindowState = FormWindowState.Maximized;
                try
                {
                    form.Show();
                }
                catch { }
            }
            else
            {
                MessageBox.Show("Дія заборонена");
            }
        }