Esempio n. 1
0
        public static void ShowErrors(Notification selectedNotification = null)
        {
            var window = new ErrorListWindow();
            window.DataContext = new StudioErrorListModel() { SelectedItem = selectedNotification};

            window.Show();
        }
		private static void HandleTransformerNotFound(string name)
		{
			if (string.IsNullOrWhiteSpace(name) == false)
			{
				var notification = new Notification(string.Format("Could not find '{0}' transformer", name), NotificationLevel.Warning);
				ApplicationModel.Current.AddNotification(notification);
			}
			UrlUtil.Navigate("/transformers");
		}
		private void HandleDocumentNotFound()
		{
			Notification notification;
			if (Mode == DocumentMode.Projection)
				notification = new Notification("Could not parse projection correctly", NotificationLevel.Error);
			else
				notification = new Notification(string.Format("Could not find '{0}' document", Key),
				                                NotificationLevel.Warning);
			ApplicationModel.Current.AddNotification(notification);
			UrlUtil.Navigate("/documents");
		}