コード例 #1
0
ファイル: MasterCommandManager.cs プロジェクト: MewX/wenku10
        private void InitCommands()
        {
            CommandList.Clear();

            new Bootstrap().Level2();

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

            ControlFrame.Instance.SetHomePage(PageId.MASTER_EXPLORER, () => new MasterExplorer());
        }
コード例 #2
0
ファイル: MasterCommandManager.cs プロジェクト: MewX/wenku10
        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);
            }
        }