AutoPuTTY.popupImport.SwitchDuplicateWarning C# (CSharp) Метод

SwitchDuplicateWarning() приватный Метод

private SwitchDuplicateWarning ( bool s ) : void
s bool
Результат void
        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;
            }
        }