private void SwitchDuplicateWarning(bool s)
{
if (bReplace.InvokeRequired) Invoke(new MethodInvoker(delegate
{
if (s) Height = oheight + pWarning.Height;
else Height = oheight;
pWarning.Visible = s;
bReplace.Enabled = s;
bSkip.Enabled = s;
}));
else
{
if (s) Height = oheight + pWarning.Height;
else Height = oheight;
pWarning.Visible = s;
bReplace.Enabled = s;
bSkip.Enabled = s;
}
}