コード例 #1
0
 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();
 }
コード例 #2
0
 private void LoadDefaultData(DataManager dataManager, ClientStorage clientStorage, ProjectStorage projectStorage)
 {
     dataManager.LoadDefaultClients(clientStorage);
     dataManager.LoadDefaultProjects(projectStorage);
 }