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(); }