Prompt for import settings
This commit is contained in:
@ -830,7 +830,7 @@ namespace EduNetworkBuilder
|
||||
if (theIcon != null)
|
||||
CheckInputForm.Icon = theIcon;
|
||||
|
||||
int startx = 150;
|
||||
int startx = 20;
|
||||
|
||||
int y = 0;
|
||||
int lastY = 0;
|
||||
@ -845,9 +845,11 @@ namespace EduNetworkBuilder
|
||||
|
||||
//Put it in the appropriate location
|
||||
cb.Location = new Point(startx, (y * (cb.Height + yspace)) + yspace);
|
||||
cb.AutoSize = true;
|
||||
lastY = cb.Location.Y;
|
||||
lastHeight = cb.Height;
|
||||
CheckInputForm.Controls.Add(cb);
|
||||
y++;
|
||||
}
|
||||
|
||||
CheckInputForm.AutoSize = true;
|
||||
@ -867,11 +869,12 @@ namespace EduNetworkBuilder
|
||||
|
||||
CheckInputForm.AcceptButton = btnAccept;
|
||||
CheckInputForm.CancelButton = btnCancel;
|
||||
CheckInputForm.Height = btnCancel.Location.Y + btnCancel.Height + 10;
|
||||
|
||||
CheckInputForm.ShowDialog();
|
||||
foreach (KeyValuePair<string, bool> entry in Checks)
|
||||
{
|
||||
if(CheckInputForm.Controls[entry.Key] != null && CheckInputForm.Controls[entry.Key] is CheckBox)
|
||||
if(responses != null && CheckInputForm.Controls[entry.Key] != null && CheckInputForm.Controls[entry.Key] is CheckBox)
|
||||
{
|
||||
CheckBox One = (CheckBox)CheckInputForm.Controls[entry.Key];
|
||||
responses.Add(One.Name, One.Checked);
|
||||
|
Reference in New Issue
Block a user