This commit is contained in:
2010-09-16 18:43:57 +00:00
parent 89f5c2dd98
commit f88bfe84fe
2 changed files with 41 additions and 10 deletions

View File

@@ -1042,16 +1042,15 @@ namespace Volian.Controls.Library
MyStepRTB.StepRTB_ArrowPressed(E_ArrowKeys.CtrlRight); // jump to RNO
else if (deletedRNO)
{
if (MyStepItem.NextDownStepItem.MyItemInfo.MyParent.ItemID == MyStepItem.MyID)
{
MyStepRTB.StepRTB_ArrowPressed(E_ArrowKeys.CtrlDown);
InsertSiblingBeforeOrAfter("before");
}
else
ShortCutContextMenu("InsSubStps");
AddSubStep();
}
else if (!deletedHLS)
CreateNewRNO();
{
if (MyItemInfo.ColumnMode > 0)
CreateNewRNO();
else
AddSubStep();
}
}
}
else if (MyItemInfo.IsRNOPart)
@@ -1060,7 +1059,8 @@ namespace Volian.Controls.Library
if (MyItemInfo.IsHigh)
{
if (MyStepItem.NextDownStepItem.MyItemInfo.MyParent.Equals(MyStepItem.MyItemInfo))
{
//if (MyStepItem.NextDownStepItem.MyItemInfo.MyParent.ItemID == MyStepItem.MyItemInfo.ItemID) //.Equals(MyStepItem.MyItemInfo))
{
MyStepRTB.StepRTB_ArrowPressed(E_ArrowKeys.CtrlDown);
InsertSiblingBeforeOrAfter("before");
}
@@ -1092,7 +1092,10 @@ namespace Volian.Controls.Library
else if (MyStepItem.MyRNOStepItems != null && MyStepItem.MyRNOStepItems.Count > 0)
MyStepRTB.StepRTB_ArrowPressed(E_ArrowKeys.CtrlRight); // jump to RNO
else
CreateNewRNO();
if (MyItemInfo.ColumnMode > 0)
CreateNewRNO();
else
InsertSiblingBeforeOrAfter("after");
}
else if (MyItemInfo.IsCaution)
{
@@ -1122,6 +1125,17 @@ namespace Volian.Controls.Library
}
}
private void AddSubStep()
{
if (MyStepItem.NextDownStepItem.MyItemInfo.MyParent.ItemID == MyStepItem.MyID)
{
MyStepRTB.StepRTB_ArrowPressed(E_ArrowKeys.CtrlDown);
InsertSiblingBeforeOrAfter("before");
}
else
ShortCutContextMenu("InsSubStps");
}
private void CreateNewRNO()
{
if (btnInsRNO.SubItems.Count > 1)