当前位置: 首页>>代码示例>>C#>>正文


C# Altaxo.GetNodeName方法代码示例

本文整理汇总了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;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:35,代码来源:XYColumnPlotData.cs

示例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;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:30,代码来源:MultivariateContentMemento.cs


注:本文中的Altaxo.GetNodeName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。