Пример #1
0
        /// <summary>
        /// Constructs a new instance of the <see cref="frmBannedHosts"/> form.
        /// </summary>
        public frmBannedHosts()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            globals   = Globals.Instance();
            validator = UrlValidator.Instance();
            globals.LoadedForms[this.Name] = this;
        }
Пример #2
0
        /// <summary>
        /// Creates a new instance of the <see cref="frmInsertUrl"/> form.
        /// </summary>
        public frmInsertUrl()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            globals        = Globals.Instance();
            sessionIDRegex = new Regex(@"([0-9a-fA-F]{40,64})|([\{|\(]?[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}[\)|\}]?)$", RegexOptions.CultureInvariant | RegexOptions.Multiline | RegexOptions.IgnoreCase | RegexOptions.Compiled);       //@"^([0-9a-f]{32})|(\{?[0-9a-f]{8}-([0-9a-f]{4}-){3}-[0-9a-f]{12}\}?)$"
            validator      = UrlValidator.Instance();
            globals.LoadedForms[this.Name] = this;
        }