Fix for Insert New Step
This commit is contained in:
@@ -230,16 +230,22 @@ namespace VEPROMS.CSLA.Library
|
||||
_DTS = tmp.DTS;
|
||||
_UserID = tmp.UserID;
|
||||
_PartInfoExtension.Refresh(this);
|
||||
if(_MyContent != null)
|
||||
{
|
||||
_MyContent.Dispose();// Dispose related value
|
||||
_MyContent = null;// Reset related value
|
||||
}
|
||||
if(_MyItem != null)
|
||||
{
|
||||
_MyItem.Dispose();// Dispose related value
|
||||
_MyItem = null;// Reset related value
|
||||
}
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
// - Resequence of transitions did not work properly.
|
||||
// if(_MyContent != null)
|
||||
// {
|
||||
// _MyContent.Dispose();// Dispose related value
|
||||
// _MyContent = null;// Reset related value
|
||||
// }
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
// - Resequence of transitions did not work properly.
|
||||
// if(_MyItem != null)
|
||||
// {
|
||||
// _MyItem.Dispose();// Dispose related value
|
||||
// _MyItem = null;// Reset related value
|
||||
// }
|
||||
OnChange();// raise an event
|
||||
}
|
||||
public static void Refresh(Content myContent, ContentPart tmp)
|
||||
@@ -262,16 +268,22 @@ namespace VEPROMS.CSLA.Library
|
||||
_DTS = tmp.DTS;
|
||||
_UserID = tmp.UserID;
|
||||
_PartInfoExtension.Refresh(this);
|
||||
if(_MyContent != null)
|
||||
{
|
||||
_MyContent.Dispose();// Dispose related value
|
||||
_MyContent = null;// Reset related value
|
||||
}
|
||||
if(_MyItem != null)
|
||||
{
|
||||
_MyItem.Dispose();// Dispose related value
|
||||
_MyItem = null;// Reset related value
|
||||
}
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
// - Resequence of transitions did not work properly.
|
||||
// if(_MyContent != null)
|
||||
// {
|
||||
// _MyContent.Dispose();// Dispose related value
|
||||
// _MyContent = null;// Reset related value
|
||||
// }
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
// - Resequence of transitions did not work properly.
|
||||
// if(_MyItem != null)
|
||||
// {
|
||||
// _MyItem.Dispose();// Dispose related value
|
||||
// _MyItem = null;// Reset related value
|
||||
// }
|
||||
OnChange();// raise an event
|
||||
}
|
||||
public static void Refresh(ItemPart tmp)
|
||||
@@ -287,16 +299,22 @@ namespace VEPROMS.CSLA.Library
|
||||
_DTS = tmp.DTS;
|
||||
_UserID = tmp.UserID;
|
||||
_PartInfoExtension.Refresh(this);
|
||||
if(_MyContent != null)
|
||||
{
|
||||
_MyContent.Dispose();// Dispose related value
|
||||
_MyContent = null;// Reset related value
|
||||
}
|
||||
if(_MyItem != null)
|
||||
{
|
||||
_MyItem.Dispose();// Dispose related value
|
||||
_MyItem = null;// Reset related value
|
||||
}
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
// - Resequence of transitions did not work properly.
|
||||
// if(_MyContent != null)
|
||||
// {
|
||||
// _MyContent.Dispose();// Dispose related value
|
||||
// _MyContent = null;// Reset related value
|
||||
// }
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
// - Resequence of transitions did not work properly.
|
||||
// if(_MyItem != null)
|
||||
// {
|
||||
// _MyItem.Dispose();// Dispose related value
|
||||
// _MyItem = null;// Reset related value
|
||||
// }
|
||||
OnChange();// raise an event
|
||||
}
|
||||
public static PartInfo Get(int contentID, int fromType)
|
||||
|
Reference in New Issue
Block a user