public void Execute() { if (!database.IsActive) { ((IConductor)database.Parent).ActivateItem(database); } database.Show(errors); }
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); }