using System.Collections.Generic;
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();
        }
    }
	public class RowDetailContainerControl : ContentControl
	{
		public RowDetailContainerControl()
		{
			this.SetDefaultStyleKey(typeof(RowDetailContainerControl));
		}
	}
}