void SetElements(bool bInit)
        {
            if (bInit)
            {
                m_ScalingStyle = m_PlotStyle.Scaling;
                m_RangeFrom    = m_PlotStyle.RangeFrom;
                m_RangeTo      = m_PlotStyle.RangeTo;
                m_ColorBelow   = m_PlotStyle.ColorBelow;
                m_ColorAbove   = m_PlotStyle.ColorAbove;
                m_ColorInvalid = m_PlotStyle.ColorInvalid;
                m_ClipToLayer  = m_PlotStyle.ClipToLayer;
            }

            if (null != View)
            {
                View.ScalingStyle_Initialize(System.Enum.GetNames(typeof(DensityImagePlotStyle.ScalingStyle)), System.Enum.GetName(typeof(DensityImagePlotStyle.ScalingStyle), m_ScalingStyle));
                View.RangeFrom_Initialize(double.IsNaN(m_RangeFrom) ? "" : m_RangeFrom.ToString());
                View.RangeTo_Initialize(double.IsNaN(m_RangeTo) ? "" : m_RangeTo.ToString());
                View.ColorBelow_Initialize(m_ColorBelow);
                View.ColorAbove_Initialize(m_ColorAbove);
                View.ColorInvalid_Initialize(m_ColorInvalid);
                View.ClipToLayer_Initialize(m_ClipToLayer);
            }
        }
 public void EhView_ScalingStyleChanged(string scalingStyle)
 {
     m_ScalingStyle = (DensityImagePlotStyle.ScalingStyle)System.Enum.Parse(typeof(DensityImagePlotStyle.ScalingStyle), scalingStyle);
 }
 public void EhView_ScalingStyleChanged(string scalingStyle)
 {
   m_ScalingStyle = (DensityImagePlotStyle.ScalingStyle)System.Enum.Parse(typeof(DensityImagePlotStyle.ScalingStyle),scalingStyle);
 }
    void SetElements(bool bInit)
    {
      if(bInit)
      {
        m_ScalingStyle  = m_PlotStyle.Scaling;
        m_RangeFrom     = m_PlotStyle.RangeFrom;
        m_RangeTo     = m_PlotStyle.RangeTo;
        m_ColorBelow  = m_PlotStyle.ColorBelow;
        m_ColorAbove  = m_PlotStyle.ColorAbove;
        m_ColorInvalid  = m_PlotStyle.ColorInvalid;
        m_ClipToLayer = m_PlotStyle.ClipToLayer;
      
      }

      if(null!=View)
      {
        View.ScalingStyle_Initialize(System.Enum.GetNames(typeof(DensityImagePlotStyle.ScalingStyle)),System.Enum.GetName(typeof(DensityImagePlotStyle.ScalingStyle),m_ScalingStyle));
        View.RangeFrom_Initialize(double.IsNaN(m_RangeFrom) ? "" : m_RangeFrom.ToString());
        View.RangeTo_Initialize(double.IsNaN(m_RangeTo) ? "" : m_RangeTo.ToString());
        View.ColorBelow_Initialize(m_ColorBelow);
        View.ColorAbove_Initialize(m_ColorAbove);
        View.ColorInvalid_Initialize(m_ColorInvalid);
        View.ClipToLayer_Initialize(m_ClipToLayer);
      }
    }