Added table function to return a list of Content records that contain a specified string.
Added stored procedure to standardize text (standard steps) Lazy Load font value. Return the correct EditItem when a step is deleted. Update the StepTabRibbon EditItem when the StepPanel EditItem is changed Get MyItemInfo if it is not set. Added missing logic to MyEditItem.
This commit is contained in:
@@ -30,6 +30,7 @@ namespace Volian.Controls.Library
|
||||
get { return _MyEditItem; }
|
||||
set
|
||||
{
|
||||
if (_MyEditItem == value) return; // Don't do this if the value is not different
|
||||
_MyEditItem = value;
|
||||
if (value != null)
|
||||
{
|
||||
@@ -37,9 +38,11 @@ namespace Volian.Controls.Library
|
||||
if (value is GridItem)
|
||||
{
|
||||
ToggleTableDesignButtons(true);
|
||||
MyFlexGrid_SelChange(this,new EventArgs());
|
||||
MyFlexGrid_SelChange(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
else
|
||||
MyStepRTB = null;
|
||||
}
|
||||
}
|
||||
private DocVersionInfo _MyDVI;
|
||||
@@ -59,8 +62,14 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
}
|
||||
private ItemInfo MyItemInfo
|
||||
{ get { return _MyStepRTB == null ? null : _MyStepRTB.MyItemInfo; } }
|
||||
|
||||
{
|
||||
get
|
||||
{
|
||||
if(_MyStepRTB != null && _MyStepRTB.MyItemInfo != null) return _MyStepRTB.MyItemInfo;
|
||||
if(_MyEditItem != null && _MyEditItem.MyItemInfo != null) return _MyEditItem.MyItemInfo;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
private DevComponents.DotNetBar.ButtonItem _DefaultContextMenu;
|
||||
|
||||
public void ClearContextMenu()
|
||||
@@ -183,11 +192,17 @@ namespace Volian.Controls.Library
|
||||
// ex. Positon on a substep, press <shift><F6> <N> <S> <S>, to list the substep types
|
||||
//_MyStepRTB.KeyUp -=new KeyEventHandler(_MyStepRTB_KeyUp);
|
||||
//_MyStepRTB.MouseUp -= new MouseEventHandler(_MyStepRTB_MouseUp);
|
||||
_MyStepRTB.SelectionChanged -= new EventHandler(_MyStepRTB_SelectionChanged);
|
||||
_MyEditItem.Leave -= new EventHandler(_MyEditItem_Leave);
|
||||
_MyEditItem.Enter += new EventHandler(_MyEditItem_Enter);
|
||||
if (_MyEditItem != null)
|
||||
{
|
||||
_MyEditItem.Leave -= new EventHandler(_MyEditItem_Leave);
|
||||
_MyEditItem.Enter += new EventHandler(_MyEditItem_Enter);
|
||||
}
|
||||
//_MyStepRTB.Leave -= new EventHandler(_MyStepRTB_Leave);
|
||||
_MyStepRTB.LinkChanged -= new StepRTBLinkEvent(_MyStepRTB_LinkChanged);
|
||||
if (_MyStepRTB != null)
|
||||
{
|
||||
_MyStepRTB.SelectionChanged -= new EventHandler(_MyStepRTB_SelectionChanged);
|
||||
_MyStepRTB.LinkChanged -= new StepRTBLinkEvent(_MyStepRTB_LinkChanged);
|
||||
}
|
||||
if (MyFlexGrid != null)
|
||||
{
|
||||
MyFlexGrid.CopyOptionChanged -= new VlnFlexGridEvent(MyFlexGrid_CopyOptionChanged);
|
||||
@@ -200,11 +215,17 @@ namespace Volian.Controls.Library
|
||||
// ex. Positon on a substep, press <shift><F6> <N> <S> <S>, to list the substep types
|
||||
//_MyStepRTB.KeyUp -=new KeyEventHandler(_MyStepRTB_KeyUp);
|
||||
//_MyStepRTB.MouseUp -= new MouseEventHandler(_MyStepRTB_MouseUp);
|
||||
_MyStepRTB.SelectionChanged += new EventHandler(_MyStepRTB_SelectionChanged);
|
||||
_MyEditItem.Leave += new EventHandler(_MyEditItem_Leave);
|
||||
_MyEditItem.Enter -= new EventHandler(_MyEditItem_Enter);
|
||||
if (_MyEditItem != null)
|
||||
{
|
||||
_MyEditItem.Leave += new EventHandler(_MyEditItem_Leave);
|
||||
_MyEditItem.Enter -= new EventHandler(_MyEditItem_Enter);
|
||||
}
|
||||
//_MyStepRTB.Leave -= new EventHandler(_MyStepRTB_Leave);
|
||||
_MyStepRTB.LinkChanged += new StepRTBLinkEvent(_MyStepRTB_LinkChanged);
|
||||
if (_MyStepRTB != null)
|
||||
{
|
||||
_MyStepRTB.LinkChanged += new StepRTBLinkEvent(_MyStepRTB_LinkChanged);
|
||||
_MyStepRTB.SelectionChanged += new EventHandler(_MyStepRTB_SelectionChanged);
|
||||
}
|
||||
if (MyFlexGrid != null)
|
||||
{
|
||||
MyFlexGrid.CopyOptionChanged += new VlnFlexGridEvent(MyFlexGrid_CopyOptionChanged);
|
||||
|
Reference in New Issue
Block a user