예제 #1
0
 // Invoke the OnTransformed event; called whenever transformation is notified
 protected virtual void OnTransformationNotified(TransformNotifiedEventArgs e)
 {
     if (TransformationNotified != null)
     {
         TransformationNotified(this, e);
     }
 }
 private void DecisionMaker_TransformNotified(object sender, TransformNotifiedEventArgs e)
 {
     //notify the Crud-Based Collection to transform
     //Console.WriteLine("Transformatin notified and start transforming to {0}", e.TransformToDataStructure);//OVERHEAD, comment this line to reduce overhead
     base.TransformTo(e.TransformToDataStructure);
     TransformationCount++;
     CurrentInternalDataStructure = e.TransformToDataStructure;
     //Console.WriteLine("#"+TransformationCount+" Transformation Completed => " + this.CurrentDataStructure.ToString());
 }