public NewTaskWindowViewModel(Task task) { Task = task; TrackingGroup.RegisterObject(Task); using (var client = new MainServiceClient()) Accounts = client.GetAccounts(task.ProjectId); }
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); }