public void AddMessage(AppBuildMessage message)
		{
			if (message.Type == AppBuildMessageType.BuildError)
				AddMessageToErrors(message);
			else
				AddMessageToWarnings(message);
			TriggerMatchingCurrentFilterChanged();
		}
		private void OnAppBuildFailedRecieved(AppBuildFailed buildFailedMessage)
		{
			var errorMessage = new AppBuildMessage(buildFailedMessage.Reason)
			{
				Project = ViewModel.Service.ProjectName,
				Type = AppBuildMessageType.BuildError,
			};
			ViewModel.MessagesListViewModel.AddMessage(errorMessage);
			SwitchToBuildMessagesList();
		}
		public AppBuildMessagesListDesign()
		{
			var appBuildMessage = new AppBuildMessage("AppBuilderMessage");
			appBuildMessage.Project = "TestProject";
			appBuildMessage.Filename = "TestFile";
			appBuildMessage.TextLine = "23";
			appBuildMessage.TextColumn = "12";
			MessagesMatchingCurrentFilter = new List<AppBuildMessageViewModel> {
				new AppBuildMessageViewModel(appBuildMessage) };
		}
		private void OnAppBuildMessageRecieved(AppBuildMessage receivedMessage)
		{
			if (receivedMessage.Type == AppBuildMessageType.BuildInfo)
			{
				Logger.Info(receivedMessage.Text);
				return;
			}
			Logger.Warning(receivedMessage.Text);
			MessagesListViewModel.AddMessage(receivedMessage);
			if (receivedMessage.Type == AppBuildMessageType.BuildError)
				AllowBuildingAppsAgain();
		}
 private void AddMessageToWarnings(AppBuildMessage message)
 {
     Warnings.Add(message);
     RaisePropertyChanged("TextOfWarningCount");
 }
 private void AddMessageToErrors(AppBuildMessage message)
 {
     Errors.Add(message);
     RaisePropertyChanged("TextOfErrorCount");
 }
		/// <summary>
		/// The ViewModel of a BuildMessage that provides all required data for the
		/// AppBuildMessagesListView.
		/// </summary>
		public AppBuildMessageViewModel(AppBuildMessage buildMessage)
		{
			MessageData = buildMessage;
		}