ProjectTracker - A little bug in ResourceAssignmentsProjectTracker - A little bug in ResourceAssignments
Old forum URL: forums.lhotka.net/forums/t/930.aspx
miroslav posted on Thursday, August 17, 2006
There is a bug in the ResourceAssignments class constructor.
// Factory methods region
private ResourceAssignments()
{
MarkAsChild();
}
// Data Access region
private ResourceAssignments(SafeDataReader dr)
{
// This should be here
MarkAsChild();
RaiseListChangedEvents = false;
while (dr.Read())
this.Add(ResourceAssignment.GetResourceAssignment(dr));
RaiseListChangedEvents = true;
}
The default constructor is OK. The second constructor doesn't call MarkAsChild() method.
RockfordLhotka replied on Saturday, August 19, 2006
Thanks - I've fixed the code in cvs so the next release will be correct. It is actually a slightly bigger change than this, because somehow this particular file didn't get brought up to current in terms of having the ctor call a private Fetch() method like ProjectResources or the VB version of the code...
Copyright (c) Marimer LLC