ZeroInstall.Central.WinForms.SyncWizard.pageServer_InputChanged C# (CSharp) Method

pageServer_InputChanged() private method

private pageServer_InputChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void pageServer_InputChanged(object sender, EventArgs e)
        {
            textBoxCustomServer.Enabled = optionCustomServer.Checked;
            textBoxFileShare.Enabled = buttonFileShareBrowse.Enabled = optionFileShare.Checked;

            pageServer.AllowNext =
                optionOfficalServer.Checked ||
                (optionCustomServer.Checked && !string.IsNullOrEmpty(textBoxCustomServer.Text) && textBoxCustomServer.IsValid) ||
                (optionFileShare.Checked && !string.IsNullOrEmpty(textBoxFileShare.Text) && Path.IsPathRooted(textBoxFileShare.Text));
        }