private EnableDisablePath ( CheckBox rhino, Label path, Button browse ) : void | ||
rhino | CheckBox | |
path | Label | |
browse | Button | |
return | void |
private void EnableDisablePath(CheckBox rhino, Label path, Button browse)
{
if (rhino.Checked && !File.Exists(path.Text))
{
browse.PerformClick();
if (!File.Exists(path.Text))
rhino.Checked = false;
}
path.Visible = rhino.Checked;
EnableOrDisableContinue();
}