コード例 #1
0
        //***************************************************************************
        // Public Methods
        //
        public void BeginParse()
        {
            this._parsing = true;
            this._canEdit = !this.ReadOnly;
            this.ReadOnly = true;
            DoParseDelegate del = new DoParseDelegate(this.DoParse);

            del.BeginInvoke(0, this.Text.Length, new AsyncCallback(this.DoParseCallback), del);
        }
コード例 #2
0
        private void DoParseCallback(IAsyncResult state)
        {
            DoParseDelegate del = (DoParseDelegate)state.AsyncState;

            del.EndInvoke(state);
            RainstormStudios.CrossThreadUI.SetPropertyValue(this, "ReadOnly", !this._canEdit);
            this._parsing = false;
            this.OnTextParsed(EventArgs.Empty);
        }
コード例 #3
0
 public void BeginParse()
 {
     this._parsing = true;
     this._canEdit = !this.ReadOnly;
     this.ReadOnly = true;
     DoParseDelegate del = new DoParseDelegate(this.DoParse);
     del.BeginInvoke(0, this.Text.Length, new AsyncCallback(this.DoParseCallback), del);
 }