This commit is contained in:
Kathy Ruffing 2012-09-27 10:30:07 +00:00
parent 146d4383b4
commit a9267ec40e

View File

@ -80,7 +80,7 @@ namespace VEPROMS
cb.Location = new Point((int)fld.x * 2, (int)fld.y * 2); cb.Location = new Point((int)fld.x * 2, (int)fld.y * 2);
cb.Visible = true; cb.Visible = true;
string val = procConfig.GetValue("PSI", fld.name); string val = procConfig.GetValue("PSI", fld.name);
cb.Checked = val.ToUpper()[0] == 'Y' ? true : false; cb.Checked = val!=null && val!="" && val.ToUpper()[0] == 'Y' ? true : false;
this.Controls.Add(cb); this.Controls.Add(cb);
} }
} }