Esempio n. 1
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                ColorGroupStyle s = null != o ? (ColorGroupStyle)o : ColorGroupStyle.NewExternalGroupStyle();

                s._isStepEnabled = info.GetBoolean("StepEnabled");
                return(s);
            }
Esempio n. 2
0
 public static void AddExternalGroupStyle(IPlotGroupStyleCollection externalGroups)
 {
     if (PlotGroupStyle.ShouldAddExternalGroupStyle(externalGroups, typeof(ColorGroupStyle)))
     {
         var gstyle = ColorGroupStyle.NewExternalGroupStyle();
         externalGroups.Add(gstyle);
     }
 }
Esempio n. 3
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                ColorGroupStyle s = null != o ? (ColorGroupStyle)o : ColorGroupStyle.NewExternalGroupStyle();

                s._isStepEnabled = info.GetBoolean("StepEnabled");
                s._listOfValues  = (Drawing.ColorManagement.IColorSet)info.GetValue("ColorSet", s);
                ColorSetManager.Instance.TryRegisterList(info, s._listOfValues, Main.ItemDefinitionLevel.Project, out s._listOfValues);

                return(s);
            }