public MainWindow()
        {
            Settings settings = new Settings();

            Pogodski.GunCatalog.BLC.DataAcces dataAcces = new BLC.DataAcces(settings.DAO);
            Guns = new ObservableCollection <IGun>(dataAcces.Guns);
            InitializeComponent();
            view = (ListCollectionView)CollectionViewSource.GetDefaultView(Guns);
        }
        public ProducerWindow()
        {
            var setting = new Settings();

            Pogodski.GunCatalog.BLC.DataAcces dataAcces = new BLC.DataAcces(setting.DAO);
            Producers = new ObservableCollection <IProducer>(dataAcces.Producers);
            InitializeComponent();
            view = (ListCollectionView)CollectionViewSource.GetDefaultView(Producers);
        }