This commit is contained in:
parent
5802cfdd10
commit
bcacc4ed5b
@ -844,6 +844,11 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void Dispose()
|
||||
{
|
||||
if (_MyGrid != null)
|
||||
{
|
||||
_MyGrid.Dispose();
|
||||
_MyGrid = null;
|
||||
}
|
||||
RemoveFromDictionaries();
|
||||
}
|
||||
private void RemoveFromDictionaries()
|
||||
|
@ -286,6 +286,10 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("MyGrid", true);
|
||||
if (_ContentGridCount == -1 && _MyGrid != null)
|
||||
{
|
||||
_MyGrid = null;
|
||||
}
|
||||
if (_ContentGridCount != 0 && _MyGrid == null)
|
||||
{
|
||||
_MyGrid = GridInfo.Get(_ContentID);
|
||||
@ -601,6 +605,7 @@ namespace VEPROMS.CSLA.Library
|
||||
// _MyGrid.Dispose();// Dispose related value
|
||||
// _MyGrid = null;// Reset related value
|
||||
// }
|
||||
if (_MyGrid != null && tmp.MyGrid != null) _MyGrid.ResetContent(tmp.MyGrid);
|
||||
_ContentGridCount = -1;// Reset Count
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
|
Loading…
x
Reference in New Issue
Block a user