internal void InvokeProcessedEvent(ProcessedEventArgs args) { var handler = ProcessedEvent; if (handler != null) { handler(this, args); } }
private void BwRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (e.Cancelled) { InvokeSuccessfullyCancelled(new EventArgs()); return; } var modelMeshAndPositionNeighbors = (ModelMeshAndPositionNeighbors)e.Result; var args = new ProcessedEventArgs { ModelMeshAndPositionNeighbors = modelMeshAndPositionNeighbors, CreateMeshContract = _contract }; InvokeProcessedEvent(args); }
private void ProcessedHandler(object sender, ProcessedEventArgs args) { SetModelDisplay(args.ModelMeshAndPositionNeighbors, args.CreateMeshContract); }