public void Start(MainWindow window) { var dataManager = new DataManager(); var clientStorage = new ClientStorage(); var projectStorage = new ProjectStorage(); LoadDefaultData(dataManager, clientStorage, projectStorage); window.DataContext = PrepareMainViewModel(clientStorage, projectStorage); window.Show(); }
private void LoadDefaultData(DataManager dataManager, ClientStorage clientStorage, ProjectStorage projectStorage) { dataManager.LoadDefaultClients(clientStorage); dataManager.LoadDefaultProjects(projectStorage); }