public ToolWindow(IUnityContainer container, IToolRepository db) { InitializeComponent(); Container = container; _db = db; _producers = _db.GetProducers(); _users = _db.GetUsers(); SelectProducer.ItemsSource = _db.GetProducers(); SelectDestroyed.ItemsSource = _users; SelectLost.ItemsSource = _users; this.PreviewKeyDown += new KeyEventHandler(HandleEsc); }