Ejemplo n.º 1
0
 public void NotifyUpdateForms(object sender, UpdateForms Update)
 {
     if (UpdateFormsEvent != null)
     {
         UpdateFormsEvent(sender, Update);
     }
 }
Ejemplo n.º 2
0
        // function to catch the update event from VuMeter class to update graph cordinates
        public void CatchUpdateForms(object sender, events.VuMeterEvents.UpdateForms Update)
        {
            VuMeter ob_VuMeterArg = sender as VuMeter;

            ob_VuMeter = ob_VuMeterArg;

            // Update cordinates
            HighTop    = ob_VuMeter.Graph.HighTop;
            HighBottom = ob_VuMeter.Graph.HighBottom;

            NormalTop    = ob_VuMeter.Graph.NormalTop;
            NormalBottom = ob_VuMeter.Graph.NormalBottom;

            LowTop    = ob_VuMeter.Graph.LowTop;
            LowBottom = ob_VuMeter.Graph.LowBottom;

            LineWidth = ob_VuMeter.Graph.LineWidth;

            LeftGraphX  = ob_VuMeter.Graph.LeftGraphX;
            RightGraphX = ob_VuMeter.Graph.RightGraphX;

            BackGroundWidth  = ob_VuMeter.Graph.BackGroundWidth;
            BackGroundTop    = ob_VuMeter.Graph.BackGroundTop;
            BackGroundBottom = ob_VuMeter.Graph.BackGroundBottom;

            EraserLeft  = ob_VuMeter.Graph.EraserLeft;
            EraserRight = ob_VuMeter.Graph.EraserRight;

            PeakOverloadLightX = ob_VuMeter.Graph.PeakOverloadLightX;
            PeakOverloadLightY = ob_VuMeter.Graph.PeakOverloadLightY;


            AmplitudeLeft  = ob_VuMeter.m_MeanValueLeft;
            AmplitudeRight = ob_VuMeter.m_MeanValueRight;


            tmRefresh.Enabled     = true;
            tmRefreshText.Enabled = true;
        }