47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
// Copyright (c) 2017 schick Informatik
|
|
// Description: Generic Info dialog for any object
|
|
//
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Shapes;
|
|
|
|
using ENI2.Controls;
|
|
|
|
namespace ENI2.EditControls
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for SimplePropertyViewDialog.xaml
|
|
/// </summary>
|
|
public partial class SimplePropertyViewDialog : EditWindowBase
|
|
{
|
|
private object _displayObject;
|
|
|
|
public SimplePropertyViewDialog()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public object DisplayObject
|
|
{
|
|
get { return this._displayObject; }
|
|
set
|
|
{
|
|
this._displayObject = value;
|
|
this.propertyGrid.SelectedObject = value;
|
|
this.Title = string.Format(Properties.Resources.textDetailInfoPropertyGridTitle, value.ToString());
|
|
}
|
|
}
|
|
}
|
|
}
|