Пример #1
0
		public bool ShowConnectedPictures(Guid TypeOfMaterial)
		    {
		    if (SelectedOrt == null)
			    return false;
		    ConnectedMaterialHandlerModell MaterialModell = new ConnectedMaterialHandlerModell();
			Window PictureWindow = new Window();
			PictureWindow.Content = new ConnectedMaterialHandlerControl();
		    (PictureWindow.Content as ConnectedMaterialHandlerControl)
					.ConnectedMaterialHandlerModellInstance = MaterialModell;
			MaterialModell.TypeOfMaterial = TypeOfMaterial;
		    MaterialModell.WordUpOrteHandlerModelInstance = this;
		    PictureWindow.Title = "BildDaten für den Ort \"" + SelectedOrt.Bezeichnung + "\"";
			PictureWindow.SizeToContent = SizeToContent.WidthAndHeight;
			MaterialModell.FillSpecialPictureSelectionList();
			MaterialModell.SelectedKoordinatenSource = SelectedOrt;
			MaterialModell.SelectedMaterialJPGTyp
				= Data.DbServer3.Blob.MaterialJPGTypen.Find(MaterialienTypen.OrtsBild);
			PictureWindow.ShowDialog();

		    return true;
		    }
Пример #2
0
		public bool ShowConnectedPictures(Guid TypeOfMaterial)
			{
			if (SelectedProjekt == null)
				return false;
			ConnectedMaterialHandlerModell MaterialModell = new ConnectedMaterialHandlerModell();
			Window PictureWindow = new Window();
			PictureWindow.Content = new ConnectedMaterialHandlerControl();
			(PictureWindow.Content as ConnectedMaterialHandlerControl)
					.ConnectedMaterialHandlerModellInstance = MaterialModell;
			MaterialModell.TypeOfMaterial = TypeOfMaterial;
			MaterialModell.ProjekteModellInstance = this;
			PictureWindow.Title = $"BildDaten und OrtsDaten für das Projekt \"{SelectedProjekt.Beschreibung}\"" +
							$", ProjektID = \"{SelectedProjekt.NumericProjektId}\" am Ort \"{SelectedProjekt.Ort.Bezeichnung}\"";
			PictureWindow.SizeToContent = SizeToContent.WidthAndHeight;
			MaterialModell.FillSpecialPictureSelectionList();
			MaterialModell.SelectedKoordinatenSource = SelectedProjekt.Ort;
			MaterialModell.SelectedMaterialJPGTyp
				= Data.DbServer3.Blob.MaterialJPGTypen.Find(MaterialienTypen.ProjektBild);
            PictureWindow.ShowDialog();
			PictureWindow.Close();
            return true;
			}