This commit is contained in:
2011-01-19 16:22:52 +00:00
parent 3bae38ab21
commit 416eb91ed4
3 changed files with 88 additions and 88 deletions

View File

@@ -57,12 +57,12 @@ namespace Volian.Controls.Library
set { _MyStepPanel.SelectedItemInfo = value; }
}
/// <summary>
/// Currently Selected StepItem
/// Currently Selected RTBItem
/// </summary>
public StepItem SelectedStepItem
public RTBItem SelectedRTBItem
{
//get { return _MyStepPanel._LookupStepItems[_MyStepPanel.SelectedItemInfo.ItemID]; }
get { return _MyStepPanel.SelectedStepItem; }
//get { return _MyStepPanel._LookupRTBItems[_MyStepPanel.SelectedItemInfo.ItemID]; }
get { return _MyStepPanel.SelectedRTBItem; }
}
/// <summary>
/// Procedure ItemInfo
@@ -81,7 +81,7 @@ namespace Volian.Controls.Library
public void FindSearchString()
{
// convert the '-' to the unicode non-breaking dash (\u8209? or \u2011 hex)
SelectedStepItem.MyStepRTB.Find(SearchString.Replace('-','\u2011'));
SelectedRTBItem.MyStepRTB.Find(SearchString.Replace('-','\u2011'));
}
#endregion
#region Contructors
@@ -105,7 +105,7 @@ namespace Volian.Controls.Library
_MyStepTabRibbon.Location = new System.Drawing.Point(0, 0);
_MyStepTabRibbon.Name = "displayTabRibbon1";
//_MyTabRibbon.MyDisplayRTB = null;
_MyStepTabRibbon.MyStepItem = null;
_MyStepTabRibbon.MyRTBItem = null;
this.Controls.Add(_MyStepTabRibbon);
_MyStepTabRibbon.Expanded = _MyDisplayTabControl.RibbonExpanded;
}
@@ -223,7 +223,7 @@ namespace Volian.Controls.Library
void _MyStepPanel_ItemSelectedChanged(object sender, ItemSelectedChangedEventArgs args)
{
//_MyTabRibbon.MyDisplayRTB = args.MyDisplayItem.MyDisplayRTB;
_MyStepTabRibbon.MyStepItem = args.MyStepItem;
_MyStepTabRibbon.MyRTBItem = args.MyRTBItem;
_MyDisplayTabControl.OnItemSelectedChanged(sender, args);
}
// Occurs when the Mode Changes
@@ -241,8 +241,8 @@ namespace Volian.Controls.Library
void _MyStepPanel_AttachmentClicked(object sender, StepPanelAttachmentEventArgs args)
{
if (curDSOItem != null) return;
curDSOItem = args.MyStepItem.MyItemInfo;
_MyDisplayTabControl.OpenItem(args.MyStepItem.MyItemInfo);
curDSOItem = args.MyRTBItem.MyItemInfo;
_MyDisplayTabControl.OpenItem(args.MyRTBItem.MyItemInfo);
curDSOItem = null;
}
/// <summary>