Example #1
0
 protected CurvySplineEventArgs OnRefreshEvent(CurvySplineEventArgs e)
 {
     if (OnRefresh != null)
     {
         OnRefresh.Invoke(e);
     }
     return(e);
 }
Example #2
0
 protected CurvySplineEventArgs OnAfterControlPointChangesEvent(CurvySplineEventArgs e)
 {
     if (OnAfterControlPointChanges != null)
     {
         OnAfterControlPointChanges.Invoke(e);
     }
     return(e);
 }
        void OnSplineRefresh(CurvySplineEventArgs e)
        {
            if (!Splines.Contains(e.Spline))
            {
                e.Spline.OnRefresh.RemoveListener(OnSplineRefresh);
                return;
            }
            if (!mIsInitialized)
            {
                return;
            }
            doRefreshLength();
            doGetProperties();

            OnRefreshEvent(new CurvySplineEventArgs(this));
        }
Example #4
0
 void OnSplineRefresh(CurvySplineEventArgs e)
 {
     mNeedRefresh = true;
 }