Object and Property name changes for consistency

This commit is contained in:
Rich
2008-03-27 19:39:10 +00:00
parent 7caa952bc3
commit c0511c990d
19 changed files with 2229 additions and 1407 deletions

View File

@@ -67,19 +67,19 @@ namespace Volian.Controls.Library
public class MostRecentItem
{
[NonSerialized]
private ItemInfo _MyItem;
public ItemInfo MyItem
private ItemInfo _MyItemInfo;
public ItemInfo MyItemInfo
{
get
{
if (_MyItem == null)
_MyItem = ItemInfo.Get(_ItemID);
return _MyItem;
if (_MyItemInfo == null)
_MyItemInfo = ItemInfo.Get(_ItemID);
return _MyItemInfo;
}
set
{
_ItemID = value.ItemID;
_MyItem = value;
_MyItemInfo = value;
_MenuTitle = GetMenuTitle();
_ToolTip = GetToolTip();
}
@@ -103,7 +103,7 @@ namespace Volian.Controls.Library
}
private string GetMenuTitle()
{
return MyItem.Path;
return MyItemInfo.Path;
}
private string _ToolTip;
public string ToolTip
@@ -118,7 +118,7 @@ namespace Volian.Controls.Library
}
private string GetToolTip()
{
DocVersionInfo tmp = (DocVersionInfo)(MyItem.MyProcedure.ActiveParent);
DocVersionInfo tmp = (DocVersionInfo)(MyItemInfo.MyProcedure.ActiveParent);
StringBuilder sb = new StringBuilder();
int indent = BuildPath(tmp.MyFolder, ref sb);
return sb.ToString();
@@ -143,7 +143,7 @@ namespace Volian.Controls.Library
}
public MostRecentItem(ItemInfo myItem)
{
MyItem = myItem;
MyItemInfo = myItem;
}
}
}