Esempio n. 1
0
 public NewTaskWindowViewModel(Task task)
 {
     Task = task;
     TrackingGroup.RegisterObject(Task);
     using (var client = new MainServiceClient())
         Accounts = client.GetAccounts(task.ProjectId);
 }
Esempio n. 2
0
 public NewTaskWindowViewModel(int projectId)
 {
     Task = new Task()
     {
         ProjectId = projectId, State = Data.Enums.TaskState.New
     };
     TrackingGroup.RegisterObject(Task);
     using (var client = new MainServiceClient())
         Accounts = client.GetAccounts(projectId);
 }