Beispiel #1
0
        private void InitCommands()
        {
            CommandList.Clear();

            new Bootstrap().Level2();

            foreach (ICommandBarElement Btn in MasterCommands)
            {
                CommandList.Add(Btn);
            }

            ControlFrame.Instance.SetHomePage(PageId.MASTER_EXPLORER, () => new MasterExplorer());
        }
Beispiel #2
0
        public void Set2ndCommands(IList <ICommandBarElement> Commands)
        {
            SecondCmdList.Clear();

            if (Commands != null && 0 < Commands.Count)
            {
                foreach (ICommandBarElement e in Commands)
                {
                    SecondCmdList.Add(e);
                }
                SecondCmdList.Add(new AppBarSeparator());
            }

            if (0 < M2ndCommands.Length)
            {
                foreach (ICommandBarElement e in M2ndCommands)
                {
                    SecondCmdList.Add(e);
                }
                SecondCmdList.Add(new AppBarSeparator());
            }

            foreach (ICommandBarElement e in CommonCommands)
            {
                SecondCmdList.Add(e);
            }

            SecondCmdList.Add(new AppBarSeparator());
            foreach (ICommandBarElement e in SystemCommands)
            {
                SecondCmdList.Add(e);
            }
        }