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";
				}
			}
示例#2
0
		private void ElementUsageModellInstanceChanged(ElementUsageModell OldValue,
			ElementUsageModell NewValue)
			{
			}