//*************************************************************************** // 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); }
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); }
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); }