Files
BeWoPlaner/BeWo/View/Detail/ServiceRecordHistoryView.xaml.cs
2017-02-09 09:06:07 +01:00

43 lines
1.1 KiB
C#

using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;
using BS.Shared.DataContracts;
using DevExpress.Xpf.Core;
namespace BeWo.View.Detail
{
public partial class ServiceRecordHistoryView
{
public ServiceRecordHistoryView()
{
InitializeComponent();
}
public void InitView(List<ServiceRecordHistoryDC> historyList)
{
AenderungsdatumColumn.Visible = !BeWoApp.AppSettings.HideServiceRecordInsertedByAndInsertedOn;
InitializeComponent();
datagrid_ServiceRecordHistory.ItemsSource = historyList;
GridView.BestFitColumns();
Focus();
if (!BeWoApp.AppSettings.IsEndDateVisible && !BeWoApp.AppSettings.IsOnlyYearMonthVisible)
{
RoundedDHeader.Header = "Minuten";
DurationInSTDHeader.Visible = false;
}
}
}
public class RowDetailContainerControl : ContentControl
{
public RowDetailContainerControl()
{
this.SetDefaultStyleKey(typeof(RowDetailContainerControl));
}
}
}