Bug Fix - Delete button enabled for other than procedure StepItems
This commit is contained in:
parent
ec1d6f9bd2
commit
9180fba5ec
@ -363,9 +363,9 @@ namespace Volian.Controls.Library
|
|||||||
}
|
}
|
||||||
btnInsPgBrk.Enabled = MyItemInfo.IsHigh;
|
btnInsPgBrk.Enabled = MyItemInfo.IsHigh;
|
||||||
btnEditMode.Checked = btnCMEditMode1.Checked = MyStepItem.MyStepPanel.PanelViewEditMode != E_ViewMode.View;
|
btnEditMode.Checked = btnCMEditMode1.Checked = MyStepItem.MyStepPanel.PanelViewEditMode != E_ViewMode.View;
|
||||||
|
// if on procedure, 'Delete' buttons should be disabled.
|
||||||
// if on procedure or section 'change type' & 'insert' buttons should be disabled.
|
btnDelelete.Enabled = btnDelStep.Enabled = ! MyItemInfo.IsProcedure;
|
||||||
if (MyItemInfo.IsProcedure) btnDelelete.Enabled = btnDelStep.Enabled = false;
|
// if on procedure or section, 'change type' & 'insert' buttons should be disabled.
|
||||||
if (MyItemInfo.IsProcedure || MyItemInfo.IsSection)
|
if (MyItemInfo.IsProcedure || MyItemInfo.IsSection)
|
||||||
{
|
{
|
||||||
btnChgTyp.Enabled = false;
|
btnChgTyp.Enabled = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user