This commit is contained in:
@@ -57,12 +57,11 @@ namespace Volian.Controls.Library
|
||||
set { _MyStepPanel.SelectedItemInfo = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// Currently Selected RTBItem
|
||||
/// Currently Selected EditItem
|
||||
/// </summary>
|
||||
public RTBItem SelectedRTBItem
|
||||
public EditItem SelectedEditItem
|
||||
{
|
||||
//get { return _MyStepPanel._LookupRTBItems[_MyStepPanel.SelectedItemInfo.ItemID]; }
|
||||
get { return _MyStepPanel.SelectedRTBItem; }
|
||||
get { return _MyStepPanel.SelectedEditItem; }
|
||||
}
|
||||
/// <summary>
|
||||
/// Procedure ItemInfo
|
||||
@@ -81,7 +80,7 @@ namespace Volian.Controls.Library
|
||||
public void FindSearchString()
|
||||
{
|
||||
// convert the '-' to the unicode non-breaking dash (\u8209? or \u2011 hex)
|
||||
SelectedRTBItem.MyStepRTB.Find(SearchString.Replace('-','\u2011'));
|
||||
SelectedEditItem.MyStepRTB.Find(SearchString.Replace('-','\u2011'));
|
||||
}
|
||||
#endregion
|
||||
#region Contructors
|
||||
@@ -105,7 +104,7 @@ namespace Volian.Controls.Library
|
||||
_MyStepTabRibbon.Location = new System.Drawing.Point(0, 0);
|
||||
_MyStepTabRibbon.Name = "displayTabRibbon1";
|
||||
//_MyTabRibbon.MyDisplayRTB = null;
|
||||
_MyStepTabRibbon.MyRTBItem = null;
|
||||
_MyStepTabRibbon.MyEditItem = null;
|
||||
this.Controls.Add(_MyStepTabRibbon);
|
||||
_MyStepTabRibbon.Expanded = _MyDisplayTabControl.RibbonExpanded;
|
||||
}
|
||||
@@ -139,7 +138,7 @@ namespace Volian.Controls.Library
|
||||
_MyStepPanel.ItemClick +=new Volian.Controls.Library.StepPanelEvent(_MyStepPanel_ItemClick);
|
||||
_MyStepPanel.AttachmentClicked += new Volian.Controls.Library.StepPanelAttachmentEvent(_MyStepPanel_AttachmentClicked);
|
||||
_MyStepPanel.ItemSelectedChanged += new ItemSelectedChangedEvent(_MyStepPanel_ItemSelectedChanged);
|
||||
_MyStepPanel.ModeChange += new Volian.Controls.Library.StepPanelModeChangeEvent(_MyStepPanel_ModeChange);
|
||||
//_MyStepPanel.ModeChange += new Volian.Controls.Library.StepPanelModeChangeEvent(_MyStepPanel_ModeChange);
|
||||
_MyStepPanel.TabDisplay += new Volian.Controls.Library.StepPanelTabDisplayEvent(_MyStepPanel_TabDisplay);
|
||||
_MyStepPanel.WordSectionClose += new StepPanelWordSectionCloseEvent(_MyStepPanel_WordSectionClose);
|
||||
_MyStepPanel.WordSectionDeleted += new StepPanelWordSectionDeletedEvent(_MyStepPanel_WordSectionDeleted);
|
||||
@@ -222,15 +221,14 @@ namespace Volian.Controls.Library
|
||||
/// <param name="args"></param>
|
||||
void _MyStepPanel_ItemSelectedChanged(object sender, ItemSelectedChangedEventArgs args)
|
||||
{
|
||||
//_MyTabRibbon.MyDisplayRTB = args.MyDisplayItem.MyDisplayRTB;
|
||||
_MyStepTabRibbon.MyRTBItem = args.MyRTBItem;
|
||||
_MyStepTabRibbon.MyEditItem = args.MyEditItem;
|
||||
_MyDisplayTabControl.OnItemSelectedChanged(sender, args);
|
||||
}
|
||||
// Occurs when the Mode Changes
|
||||
void _MyStepPanel_ModeChange(object sender, StepRTBModeChangeEventArgs args)
|
||||
{
|
||||
_MyDisplayTabControl.OnModeChange(sender, args);
|
||||
}
|
||||
//void _MyStepPanel_ModeChange(object sender, StepRTBModeChangeEventArgs args)
|
||||
//{
|
||||
// _MyDisplayTabControl.OnModeChange(sender, args);
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when the user clicks on the Attachment Expander
|
||||
@@ -241,8 +239,8 @@ namespace Volian.Controls.Library
|
||||
void _MyStepPanel_AttachmentClicked(object sender, StepPanelAttachmentEventArgs args)
|
||||
{
|
||||
if (curDSOItem != null) return;
|
||||
curDSOItem = args.MyRTBItem.MyItemInfo;
|
||||
_MyDisplayTabControl.OpenItem(args.MyRTBItem.MyItemInfo);
|
||||
curDSOItem = args.MyEditItem.MyItemInfo;
|
||||
_MyDisplayTabControl.OpenItem(args.MyEditItem.MyItemInfo);
|
||||
curDSOItem = null;
|
||||
}
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user