Remove Old comments
Remove unnecessary Disposes
This commit is contained in:
@@ -152,7 +152,7 @@ namespace VEPROMS.CSLA.Library
|
||||
using (Item newNextItem = newNextInfo.Get())
|
||||
{
|
||||
newNextItem.MyPrevious = this;
|
||||
newNextItem.Save().Dispose();
|
||||
newNextItem.Save();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
else
|
||||
parentItem.MyContent.ContentParts[(int)partType].MyItem = this;
|
||||
parentItem.Save().Dispose();
|
||||
parentItem.Save();
|
||||
}
|
||||
}
|
||||
else if (parentInfoDV != null) // Moving Item (Procedure) within DocVersion
|
||||
@@ -191,13 +191,13 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
ItemInfo firstinfo = parentInfoDV.FirstChild();
|
||||
parentItemDV.MyItem = wasfirstchild?parentInfoDV.Procedures[1].Get():this;
|
||||
parentItemDV.Save().Dispose();
|
||||
parentItemDV.Save();
|
||||
if (!wasfirstchild && firstinfo != null)
|
||||
{
|
||||
using (Item firstchild = firstinfo.Get())
|
||||
{
|
||||
firstchild.MyPrevious = this;
|
||||
firstchild.Save().Dispose();
|
||||
firstchild.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -237,7 +237,7 @@ namespace VEPROMS.CSLA.Library
|
||||
using (Item nextItem = nextInfo.Get())
|
||||
{
|
||||
nextItem.MyPrevious = itm;// Aim the next item back at the new item.
|
||||
nextItem.Save().Dispose();
|
||||
nextItem.Save();
|
||||
}
|
||||
}
|
||||
if (fromitem == null)
|
||||
@@ -252,15 +252,15 @@ namespace VEPROMS.CSLA.Library
|
||||
using (Item firstchild = firstinfo.Get())
|
||||
{
|
||||
parentItem.MyContent.ContentParts[(int)partType].MyItem = itm;// First update the parent to point to the new first child
|
||||
parentItem.Save().Dispose();
|
||||
parentItem.Save();
|
||||
firstchild.MyPrevious = itm;// Aim the old first child to point to the new first child.
|
||||
firstchild.Save().Dispose();
|
||||
firstchild.Save();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
parentItem.MyContent.ContentParts.Add((int)partType, itm);// update the parent to point to the new first child
|
||||
parentItem.Save().Dispose();
|
||||
parentItem.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -270,13 +270,13 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
ItemInfo firstinfo = parentInfoDV.FirstChild();
|
||||
parentItemDV.MyItem = itm;// First update the parent to point to the new first child
|
||||
parentItemDV.Save().Dispose();
|
||||
parentItemDV.Save();
|
||||
if (firstinfo != null)
|
||||
{
|
||||
using (Item firstchild = firstinfo.Get())
|
||||
{
|
||||
firstchild.MyPrevious = itm;// Aim the old first child to point to the new first child.
|
||||
firstchild.Save().Dispose();
|
||||
firstchild.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user