This commit is contained in:
2013-03-08 16:34:47 +00:00
parent 3f4972e3d3
commit c377c9b91d
2 changed files with 9 additions and 3 deletions

View File

@@ -79,9 +79,12 @@ namespace VEPROMS
cb.Text = fld.text;
cb.Location = new Point((int)fld.x * 2, (int)fld.y * 2);
cb.Visible = true;
cb.Width = (int)fld.width * 2;
string val = procConfig.GetValue("PSI", fld.name);
cb.Checked = val!=null && val!="" && val.ToUpper()[0] == 'Y' ? true : false;
this.Controls.Add(cb);
maxx = ((int)fld.x * 2 + (int)fld.width * 2) > maxx ? ((int)fld.x * 2 + (int)fld.width * 2) : maxx;
maxy = ((int)fld.y * 2 + (int)fld.height * 2) > maxy ? ((int)fld.y * 2 + (int)fld.height * 2) : maxy;
}
}
if (psiDialogDef.ButtonsOnBottom == null || psiDialogDef.ButtonsOnBottom.ToUpper() == "NO")