Object and Property name changes for consistency
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user