コード例 #1
0
        internal void InvokeProcessedEvent(ProcessedEventArgs args)
        {
            var handler = ProcessedEvent;

            if (handler != null)
            {
                handler(this, args);
            }
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 private void ProcessedHandler(object sender, ProcessedEventArgs args)
 {
     SetModelDisplay(args.ModelMeshAndPositionNeighbors, args.CreateMeshContract);
 }