當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。