public void EhView_HeightChanged(string txt, ref bool bCancel)
 {
     if (m_HeightType == XYPlotLayerSizeType.AbsoluteValue)
     {
         bCancel = !GUIConversion.GetLengthMeasureValue(txt, ref m_Height);
     }
     else
     {
         bCancel = !GUIConversion.GetPercentMeasureValue(txt, ref m_Height);
     }
 }
 void ILayerPositionViewEventSink.EhView_TopChanged(string txt, ref bool bCancel)
 {
     if (m_TopType == XYPlotLayerPositionType.AbsoluteValue)
     {
         bCancel = !GUIConversion.GetLengthMeasureValue(txt, ref m_Top);
     }
     else
     {
         bCancel = !GUIConversion.GetPercentMeasureValue(txt, ref m_Top);
     }
 }
Example #3
0
 static bool GetPositionValue(TextBox t, ref double value)
 {
     return(GUIConversion.GetLengthMeasureValue(t.Text, ref value));
 }