Bug Fix - Delete button enabled for other than procedure StepItems

This commit is contained in:
Rich 2010-01-08 14:33:38 +00:00
parent ec1d6f9bd2
commit 9180fba5ec

View File

@ -363,9 +363,9 @@ namespace Volian.Controls.Library
}
btnInsPgBrk.Enabled = MyItemInfo.IsHigh;
btnEditMode.Checked = btnCMEditMode1.Checked = MyStepItem.MyStepPanel.PanelViewEditMode != E_ViewMode.View;
// if on procedure or section 'change type' & 'insert' buttons should be disabled.
if (MyItemInfo.IsProcedure) btnDelelete.Enabled = btnDelStep.Enabled = false;
// if on procedure, 'Delete' buttons should be disabled.
btnDelelete.Enabled = btnDelStep.Enabled = ! MyItemInfo.IsProcedure;
// if on procedure or section, 'change type' & 'insert' buttons should be disabled.
if (MyItemInfo.IsProcedure || MyItemInfo.IsSection)
{
btnChgTyp.Enabled = false;