Exemplo n.º 1
0
        public JsonSearcher()
            : base()
        {
            this.inputBox = new JsonTextBox();
            this.searchResults = new DataBox();
            this.startSearchEvent = new JsonScriptObjectEventSource();
            this.MinimumCharacterCount = 3;
            this.attacher = new JsonFunction();
            this.attacher.ExecutionType = JavascriptExecutionTypes.OnWindowLoad;
            this.AddJsonFunction(this.attacher);
            this.AutoRegisterScript = true;
            this.Controls.Add(inputBox);
            this.Controls.Add(searchResults);
            this.Controls.Add(startSearchEvent);

            this.AddRequiredScript(typeof(JsonSearcher));//"naizari.javascript.jsoncontrols.jsonsearcher.js");
        }
Exemplo n.º 2
0
        public JsonSearcher()
            : base()
        {
            this.inputBox               = new JsonTextBox();
            this.searchResults          = new DataBox();
            this.startSearchEvent       = new JsonScriptObjectEventSource();
            this.MinimumCharacterCount  = 3;
            this.attacher               = new JsonFunction();
            this.attacher.ExecutionType = JavascriptExecutionTypes.OnWindowLoad;
            this.AddJsonFunction(this.attacher);
            this.AutoRegisterScript = true;
            this.Controls.Add(inputBox);
            this.Controls.Add(searchResults);
            this.Controls.Add(startSearchEvent);

            this.AddRequiredScript(typeof(JsonSearcher));//"naizari.javascript.jsoncontrols.jsonsearcher.js");
        }