Esempio n. 1
0
 public static void SetModel(ChartControl chart, Marker3DModel model)
 {
     foreach (MarkerSeries3D series in chart.Diagram.Series)
     {
         series.Model = model;
     }
 }
Esempio n. 2
0
        public static Marker3DKind FindActualMarker3DModelKind(Marker3DModel model)
        {
            if (model == null)
            {
                return(null);
            }
            IEnumerable <Marker3DKind> marker3DKinds = Marker3DModel.GetPredefinedKinds();

            foreach (Marker3DKind marker3DKind in marker3DKinds)
            {
                if (Object.Equals(marker3DKind.Type, model.GetType()))
                {
                    return(marker3DKind);
                }
            }
            return(null);
        }