Fixed null reference
Fixed null reference and logic to support Placekeeper check box
This commit is contained in:
@@ -147,7 +147,7 @@ namespace Volian.Controls.Library
|
||||
cbPageBreak.Checked = false; // will be set below if HLS & config has it on
|
||||
cbPlaceKeeper.Checked = false; // will be set below if HLS & config has this set
|
||||
cbPageBreak.Enabled = CurItemInfo.IsHigh;
|
||||
cbPlaceKeeper.Enabled = ((SectionConfig)CurItemInfo.MyActiveSection.MyConfig).Section_Placekeeper == "Y";
|
||||
cbPlaceKeeper.Enabled = ((SectionConfig)CurItemInfo.ActiveSection.MyConfig).Section_Placekeeper == "Y";
|
||||
cbCAS.Enabled = true;
|
||||
rbChgBarOff.Enabled = true;
|
||||
rbChgBarOn.Enabled = true;
|
||||
@@ -180,7 +180,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (CurItemInfo.IsHigh)
|
||||
cbPageBreak.Checked = sc.Step_NewManualPagebreak;
|
||||
cbPlaceKeeper.Checked = sc.Step_Placekeeper;
|
||||
cbPlaceKeeper.Checked = sc.Step_Placekeeper.ToUpper() != "N";
|
||||
cbCAS.Checked = sc.Step_CAS;
|
||||
}
|
||||
bool _checkoffsAllowed = true;
|
||||
@@ -337,7 +337,7 @@ namespace Volian.Controls.Library
|
||||
MyEditItem.SaveContents();
|
||||
StepConfig sc = CurItemInfo.MyConfig as StepConfig;
|
||||
if (sc == null) return;
|
||||
sc.Step_Placekeeper = cbPlaceKeeper.Checked;
|
||||
sc.Step_Placekeeper = (cbPlaceKeeper.Checked)?"Y":"N";
|
||||
}
|
||||
private void listBoxStepTypes_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user