private void SetData(DataBase data) { try { AdvContext.Current.Data = data; _data = data; Status = _data.FileName; OnPropertyChanged("Status"); _phones = new PhonesListView(data.Phones); _manufaturers = new TextListView("Производители", data.WheelsManufaturers); _logins = new LoginListView(data.Logins, _logWriter); _wheels = new WheelsListView(data) { Phones = _phones.Items, Manufacturers = _manufaturers.Items }; Lists.Clear(); Lists.Add(_logins); Lists.Add(_phones); Lists.Add(_manufaturers); Lists.Add(_wheels); } catch (Exception ex) { _logWriter.LogDebug(ex.ToString()); } }