Пример #1
0
        private void OnVisualizerDataReady(object sender, VisualizerDataEventArgs <MethodBodyInfo> e)
        {
            var mbi       = e.VisualizerData;
            var childForm = FindOrCreateChildForm(mbi);

            var imbi = childForm.CurrentData != null
                ? IncrementalMethodBodyInfo.Create(mbi, childForm.CurrentData.LengthHistory)
                : IncrementalMethodBodyInfo.Create(mbi);

            childForm.UpdateWith(imbi);
        }
Пример #2
0
        protected void FireDataReadyEvent(T data)
        {
            if (VisualizerDataReady != null)
            {
                var args = new VisualizerDataEventArgs <T>(data);

                if (VisualizerDataReady.Target is Control targetCtrl)
                {
                    targetCtrl.Invoke(VisualizerDataReady, this, args);
                }
                else
                {
                    VisualizerDataReady(this, args);
                }
            }
        }