本文整理汇总了C#中Altaxo.GetNodeName方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.GetNodeName方法的具体用法?C# Altaxo.GetNodeName怎么用?C# Altaxo.GetNodeName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Altaxo
的用法示例。
在下文中一共展示了Altaxo.GetNodeName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public override object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
XYColumnPlotData s = null != o ? (XYColumnPlotData)o : new XYColumnPlotData(info);
base.Deserialize(s, info, parent);
bool bNeedsCallback = false;
object labelColumn = null;
int nOptionalData = info.OpenArray();
{
if (nOptionalData == 1)
{
string keystring = info.GetNodeName();
labelColumn = info.GetValue("LabelColumn", s);
if (labelColumn is Altaxo.Data.IReadableColumn)
s._deprecatedLabelColumn = (Altaxo.Data.IReadableColumn)labelColumn;
else if (labelColumn is Main.AbsoluteDocumentPath)
bNeedsCallback = true;
}
}
info.CloseArray(nOptionalData);
if (bNeedsCallback)
{
XmlSerializationSurrogate2 surr = new XmlSerializationSurrogate2();
surr._labelColumn = labelColumn as Main.AbsoluteDocumentPath;
surr._plotAssociation = s;
info.DeserializationFinished += new Altaxo.Serialization.Xml.XmlDeserializationCallbackEventHandler(surr.EhDeserializationFinished2);
}
return s;
}
示例2: Deserialize
public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
{
MultivariateContentMemento s = null != o ? (MultivariateContentMemento)o : new MultivariateContentMemento();
s.OriginalDataTableName = info.GetString("Name");
s.SpectrumIsRow = info.GetBoolean("SpectrumIsRow");
s.SpectralIndices = (IAscendingIntegerCollection)info.GetValue("SpectralIndices", s);
s.ConcentrationIndices = (IAscendingIntegerCollection)info.GetValue("ConcentrationIndices", s);
s.MeasurementIndices = (IAscendingIntegerCollection)info.GetValue("MeasurementIndices", s);
s._PreferredNumberOfFactors = info.GetInt32("PreferredNumberOfFactors");
// new in version 1
int[] regions;
info.GetArray("SpectralPreprocessingRegions", out regions);
s._spectralPreprocessing.Regions = regions;
s._spectralPreprocessing.Method = (SpectralPreprocessingMethod)info.GetEnum("SpectralPreprocessingMethod", typeof(SpectralPreprocessingMethod));
s._spectralPreprocessing.DetrendingOrder = info.GetInt32("SpectralPreprocessingDetrending");
s._spectralPreprocessing.EnsembleScale = info.GetBoolean("SpectralPreprocessingEnsembleScale");
// new in version 2
s._ClassNameOfAnalysisClass = info.GetString("ClassNameOfAnalysisClass");
// added fix after version 2 : forgotten to serialize crossPRESSCalculationType
if (info.GetNodeName() == "CrossPRESSCalculationType")
s._crossPRESSCalculationType = (CrossPRESSCalculationType)info.GetValue("CrossPRESSCalculationType", s);
else
s._crossPRESSCalculationType = CrossPRESSCalculationType.ExcludeGroupsOfSimilarMeasurements;
return s;
}