This commit is contained in:
parent
416eb91ed4
commit
fcf38d2bec
@ -673,7 +673,7 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
private void PasteBeforeOrAfter(MenuSelections newtype, VETreeNode tn, int copyStartID)
|
private void PasteBeforeOrAfter(MenuSelections newtype, VETreeNode tn, int copyStartID)
|
||||||
{
|
{
|
||||||
// If paste-from step is open in the editor, use the OnPasteItemInfo to paste the step and add stepitems
|
// If paste-from step is open in the editor, use the OnPasteItemInfo to paste the step and add RTBItems
|
||||||
// to the step editor panel.
|
// to the step editor panel.
|
||||||
ItemInfo ii = tn.VEObject as ItemInfo;
|
ItemInfo ii = tn.VEObject as ItemInfo;
|
||||||
ItemInfo.EAddpingPart pasteOpt = newtype == MenuSelections.StepBefore ? ItemInfo.EAddpingPart.Before : ItemInfo.EAddpingPart.After;
|
ItemInfo.EAddpingPart pasteOpt = newtype == MenuSelections.StepBefore ? ItemInfo.EAddpingPart.Before : ItemInfo.EAddpingPart.After;
|
||||||
@ -994,7 +994,7 @@ namespace Volian.Controls.Library
|
|||||||
|
|
||||||
private VETreeNode InsertChildStep(VETreeNode tn)
|
private VETreeNode InsertChildStep(VETreeNode tn)
|
||||||
{
|
{
|
||||||
// If parent step is open in editor, use the OnInsertItemInfo to insert step & add stepitems to step editor panel
|
// If parent step is open in editor, use the OnInsertItemInfo to insert step & add RTBItems to step editor panel
|
||||||
ItemInfo ii = tn.VEObject as ItemInfo;
|
ItemInfo ii = tn.VEObject as ItemInfo;
|
||||||
if (OnInsertItemInfo(this, new vlnTreeItemInfoInsertEventArgs(ii, E_InsertType.Child, "New Step", 20002, E_FromType.Step)))
|
if (OnInsertItemInfo(this, new vlnTreeItemInfoInsertEventArgs(ii, E_InsertType.Child, "New Step", 20002, E_FromType.Step)))
|
||||||
{
|
{
|
||||||
@ -1013,7 +1013,7 @@ namespace Volian.Controls.Library
|
|||||||
|
|
||||||
private VETreeNode InsertBeforeOrAfter(MenuSelections newtype, VETreeNode tn)
|
private VETreeNode InsertBeforeOrAfter(MenuSelections newtype, VETreeNode tn)
|
||||||
{
|
{
|
||||||
// If parent step is open in editor, use the OnInsertItemInfo to insert step & add stepitems to step editor panel
|
// If parent step is open in editor, use the OnInsertItemInfo to insert step & add RTBItems to step editor panel
|
||||||
ItemInfo ii = tn.VEObject as ItemInfo;
|
ItemInfo ii = tn.VEObject as ItemInfo;
|
||||||
if (OnInsertItemInfo(this, new vlnTreeItemInfoInsertEventArgs(ii,(newtype == MenuSelections.StepAfter) ? E_InsertType.After:E_InsertType.Before, "New Step")))
|
if (OnInsertItemInfo(this, new vlnTreeItemInfoInsertEventArgs(ii,(newtype == MenuSelections.StepAfter) ? E_InsertType.After:E_InsertType.Before, "New Step")))
|
||||||
{
|
{
|
||||||
@ -1101,7 +1101,7 @@ namespace Volian.Controls.Library
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
// send an event to frmVeproms that sends an event to the stepeditor to
|
// send an event to frmVeproms that sends an event to the stepeditor to
|
||||||
// do delete using stepitem - this manages windowing from the step editor.
|
// do delete using RTBItem - this manages windowing from the step editor.
|
||||||
// If the procedure is open & you're deleting procedure, you want to close open
|
// If the procedure is open & you're deleting procedure, you want to close open
|
||||||
// window - this is done in DisplayTabControl-DeleteStepTabItem.
|
// window - this is done in DisplayTabControl-DeleteStepTabItem.
|
||||||
if (!OnDeleteItemInfo(this, new vlnTreeItemInfoEventArgs(ii)))
|
if (!OnDeleteItemInfo(this, new vlnTreeItemInfoEventArgs(ii)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user