private void MaterialThumbPicture_OnClick(object sender, RoutedEventArgs e)
			{
			MaterialJPG SelectedEntry = (MaterialJPG)((Button)sender).DataContext;
			e.Handled = true;
			CsWindow FullSizeImageWindow = new CsWindow();
			//CsGlobal.Wpf.Storage.Window.Handle(FullSizeImageWindow, "FullSizeJPGPictures");
			FullSizeImageWindow.Content = new Image()
				{
				Source = SelectedEntry.ValueAsBitmapSource
				};
			FullSizeImageWindow.Title = SelectedEntry.Description;
			FullSizeImageWindow.Show();
			}
예제 #2
0
		private void ToggleUsageWindow_OnClick(object sender, RoutedEventArgs e)
			{
			if (ElementUsageWindow == null)
				{
				if (ElementUsageModellInstance == null)
					ElementUsageModellInstance = new ElementUsageModell();
				ElementUsageWindow = new CsWindow();
				CsGlobal.Wpf.Storage.Window.Handle(ElementUsageWindow, "ElementUsageWindow");

				ElementUsageWindow.Title = "Verwendung der einzelnen Datenelemente";
				(sender as Button).Content = "Schließe Verwendungen";
				ElementUsageWindow.Content = new ElementUsageUI()
					{
					ElementUsageModellInstance = this.ElementUsageModellInstance
					};
				ElementUsageWindow.Closing += (o, args) =>
					{
					(ElementUsageWindow.Content as ElementUsageUI).CloseRequested();
					};

				ElementUsageModellInstance.LoadData();
				ElementUsageWindow.Show();
				}
			else
				{
				ElementUsageWindow.Close();
				ElementUsageWindow = null;
				(sender as Button).Content = "Zeige Verwendungen";
				}
			}