Exemplo n.º 1
0
        private void absorbReportPermissionsFrom(KeyChain chain)
        {
            if (chain.CanAccessAllReports)
            {
                CanAccessAllReports = true;
            }

            if (chain.Reports == null)
            {
                return;
            }

            foreach (var cmd in chain.Reports)
            {
                if (!Reports.Contains(cmd))
                {
                    Reports.Add(cmd);
                }
            }
        }
Exemplo n.º 2
0
        private void absorbTabPermissionsFrom(KeyChain chain)
        {
            if (chain.CanAccessAllTabs)
            {
                CanAccessAllTabs = true;
            }

            if (chain.Tabs == null)
            {
                return;
            }

            foreach (var cmd in chain.Tabs)
            {
                if (!Tabs.Contains(cmd))
                {
                    Tabs.Add(cmd);
                }
            }
        }
Exemplo n.º 3
0
        private void absorbCommandPermissionsFrom(KeyChain chain)
        {
            if (chain.CanAccessAllCommands)
            {
                CanAccessAllCommands = true;
            }

            if (chain.Commands == null)
            {
                return;
            }


            foreach (var cmd in chain.Commands)
            {
                if (!Commands.Contains(cmd))
                {
                    Commands.Add(cmd);
                }
            }
        }