Exemple #1
0
        public void Execute()
        {
            if (!database.IsActive)
            {
                ((IConductor)database.Parent).ActivateItem(database);
            }

            database.Show(errors);
        }
Exemple #2
0
        protected override void OnNavigate(Dictionary <string, string> parameters)
        {
            var page = parameters["page"];

            if (string.IsNullOrWhiteSpace(page))
            {
                return;
            }

            var navigateTo = databaseExplorer.AvailableItems
                             .Where(item => item.Metadata.DisplayName.Equals(page, StringComparison.InvariantCultureIgnoreCase))
                             .FirstOrDefault();

            if (navigateTo == null)
            {
                return;
            }

            var navigateToScreen = (IScreen)navigateTo.Value;

            databaseExplorer.Show(navigateToScreen);
        }