Esempio n. 1
0
        public void Execute()
        {
            var presenter  = App.MainPages;
            var foundIndex = App.Presenter.FindShortcutKeysPanelIndex();

            if (foundIndex == -1)
            {
                var model = App.Resolve <IPanelModel>();
                var root  = new ShortcutRoot();
                model.DataType = typeof(ShortcutPanelItem).Name;
                model.CurrentPath.Push(root);
                presenter.AddTab(model);
                foundIndex = presenter.Count - 1;
            }
            presenter.SelectedIndex = foundIndex;
        }
Esempio n. 2
0
 public void TestCreate()
 {
     var result = new ShortcutRoot();
 }