public static void PrepareStyle(
            IPlotGroupStyleCollection externalGroups,
            IPlotGroupStyleCollection localGroups,
            Func <bool> getter)
        {
            if (!externalGroups.ContainsType(typeof(IgnoreMissingDataPointsGroupStyle)) &&
                null != localGroups &&
                !localGroups.ContainsType(typeof(IgnoreMissingDataPointsGroupStyle)))
            {
                localGroups.Add(new IgnoreMissingDataPointsGroupStyle());
            }

            IgnoreMissingDataPointsGroupStyle grpStyle = null;

            if (externalGroups.ContainsType(typeof(IgnoreMissingDataPointsGroupStyle)))
            {
                grpStyle = (IgnoreMissingDataPointsGroupStyle)externalGroups.GetPlotGroupStyle(typeof(IgnoreMissingDataPointsGroupStyle));
            }
            else if (localGroups != null)
            {
                grpStyle = (IgnoreMissingDataPointsGroupStyle)localGroups.GetPlotGroupStyle(typeof(IgnoreMissingDataPointsGroupStyle));
            }

            if (grpStyle != null && getter != null && !grpStyle.IsInitialized)
            {
                grpStyle.Initialize(getter());
            }
        }
        /// <summary>
        /// Try to apply the symbol size group style. Returns true if successfull applied.
        /// </summary>
        /// <param name="externalGroups"></param>
        /// <param name="localGroups"></param>
        /// <param name="setter"></param>
        /// <returns></returns>
        public static bool ApplyStyle(
            IPlotGroupStyleCollection externalGroups,
            IPlotGroupStyleCollection localGroups,
            Action <bool> setter)
        {
            IgnoreMissingDataPointsGroupStyle grpStyle = null;
            IPlotGroupStyleCollection         grpColl  = null;

            if (externalGroups.ContainsType(typeof(IgnoreMissingDataPointsGroupStyle)))
            {
                grpColl = externalGroups;
            }
            else if (localGroups != null && localGroups.ContainsType(typeof(IgnoreMissingDataPointsGroupStyle)))
            {
                grpColl = localGroups;
            }

            if (null != grpColl)
            {
                grpStyle = (IgnoreMissingDataPointsGroupStyle)grpColl.GetPlotGroupStyle(typeof(IgnoreMissingDataPointsGroupStyle));
                grpColl.OnBeforeApplication(typeof(IgnoreMissingDataPointsGroupStyle));
                setter(grpStyle.IgnoreMissingDataPoints);
                return(true);
            }
            else
            {
                return(false);
            }
        }
 public IgnoreMissingDataPointsGroupStyle(IgnoreMissingDataPointsGroupStyle from)
 {
     _isInitialized           = from._isInitialized;
     _ignoreMissingDataPoints = from._ignoreMissingDataPoints;
 }
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                IgnoreMissingDataPointsGroupStyle s = null != o ? (IgnoreMissingDataPointsGroupStyle)o : new IgnoreMissingDataPointsGroupStyle();

                return(s);
            }
		public IgnoreMissingDataPointsGroupStyle(IgnoreMissingDataPointsGroupStyle from)
		{
			this._isInitialized = from._isInitialized;
			this._ignoreMissingDataPoints = from._ignoreMissingDataPoints;
		}