Example #1
0
        public static void AddEulaCookieHeaderIfNecessary(WebClient wc)
        {
            const string header = "Cookie";

            if (wc.Headers[header] == null)
            {
                wc.Headers.Add(header, EulaContents.GetEulaCookie());
            }
        }
Example #2
0
        /// <summary>
        /// Constructs a <see cref="EulaDialog"/> class.
        /// </summary>
        /// <param name="contents">
        /// The <see cref="EulaContents"/> that contains all the pieces for the
        /// dialog.
        /// </param>
        public EulaDialog(EulaContents contents)
        {
            InitializeComponent( );

            Text                   = contents.TitleKey;
            txtEula.Text           = contents.EulaText;
            lblReleaseDetails.Text = contents.ButtonDescriptionKey;
            btnAccept.Text         = contents.AcceptTextKey;
            btnDecline.Text        = contents.DeclineTextKey;
        }