private void ExecMatchCallBack(IAsyncResult state) { ExecMatchDelegate del = (ExecMatchDelegate)state.AsyncState; int totalMatches = del.EndInvoke(state); RainstormStudios.CrossThreadUI.SetPropertyValue(this.statusLbllMatches, "Text", "Matches: " + totalMatches.ToString()); RainstormStudios.CrossThreadUI.SetPropertyValue(this.statusLblLastMatch, "Text", "Last Match: " + Math.Round(DateTime.Now.Subtract(this.dtRegExStart).TotalSeconds, 2).ToString()); RainstormStudios.CrossThreadUI.SetVisible(this.animWidgetRotator1, false); //RainstormStudios.CrossThreadUI.SetEnabled((frmRgxDoc)this.dockPanel.ActiveDocument, true); this.dtRegExStart = DateTime.MinValue; }
private void BeginMatch() { ExecMatchDelegate del = new ExecMatchDelegate(this.ExecMatch); del.BeginInvoke(new AsyncCallback(this.ExecMatchCallBack), del); }