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


C# Altaxo.GetDateTime方法代码示例

本文整理汇总了C#中Altaxo.GetDateTime方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.GetDateTime方法的具体用法?C# Altaxo.GetDateTime怎么用?C# Altaxo.GetDateTime使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Altaxo的用法示例。


在下文中一共展示了Altaxo.GetDateTime方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				FiniteDateTimeBoundaries s = null != o ? (FiniteDateTimeBoundaries)o : new FiniteDateTimeBoundaries();

				s._numberOfItems = info.GetInt32("NumberOfItems");
				s._minValue = info.GetDateTime("MinValue");
				s._maxValue = info.GetDateTime("MaxValue");

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:10,代码来源:FiniteDateTimeBoundaries.cs

示例2: Deserialize

      public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
      {
        
        DateTimeAxisRescaleConditions s = null!=o ? (DateTimeAxisRescaleConditions)o : new DateTimeAxisRescaleConditions();

        s._orgRescaling = (BoundaryRescaling)info.GetEnum("OrgRescaling",typeof(BoundaryRescaling));
        s._org  = info.GetDateTime("Org");
        s._endRescaling = (BoundaryRescaling)info.GetEnum("EndRescaling",typeof(BoundaryRescaling));
        s._end  = info.GetDateTime("End");
        s._spanRescaling = (BoundaryRescaling)info.GetEnum("SpanRescaling",typeof(BoundaryRescaling));
        s._span = info.GetTimeSpan("Span");
        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:13,代码来源:DateTimeAxisRescaleConditions.cs

示例3: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				DateTimeScale s = null != o ? (DateTimeScale)o : new DateTimeScale(info);

				s._axisOrg = info.GetDateTime("Org");
				s._axisEnd = info.GetDateTime("End");
				s.ChildSetMember(ref s._rescaling, (DateTimeScaleRescaleConditions)info.GetValue("Rescaling", s));
				s.ChildSetMember(ref s._dataBounds, (FiniteDateTimeBoundaries)info.GetValue("Bounds", s));
				s.ChildSetMember(ref s._tickSpacing, new Ticks.DateTimeTickSpacing());

				s.EhChildChanged(s._dataBounds, EventArgs.Empty); // for this old version, rescaling is not fully serialized, thus we have to simulate a DataBoundChanged event to get _rescaling updated, and finally _tickSpacing updated

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:14,代码来源:DateTimeScale.cs

示例4: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				string colorSetName = info.GetString("Name");
				var colorSetLevel = (Altaxo.Main.ItemDefinitionLevel)info.GetEnum("Level", typeof(Altaxo.Main.ItemDefinitionLevel));
				var creationDate = info.GetDateTime("CreationDate");
				var isPlotColorSet = info.GetBoolean("IsPlotColorSet");

				int count = info.OpenArray("Colors");
				var colors = new NamedColor[count];
				for (int i = 0; i < count; ++i)
				{
					string name = info.GetStringAttribute("Name");
					string cvalue = info.GetString("e");
					colors[i] = new NamedColor(AxoColor.FromInvariantString(cvalue), name);
				}

				info.CloseArray(count);

				return new ColorSet(colorSetName, colors);
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:20,代码来源:ColorSet.cs

示例5: Deserialize

 public override void Deserialize(GraphDocument s, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
 {
   base.Deserialize(s, info, parent);
   s._graphIdentifier = info.GetString("GraphIdentifier");
   s._notes = info.GetString("Notes");
   s._creationTime = info.GetDateTime("CreationTime").ToUniversalTime();
   s._lastChangeTime = info.GetDateTime("LastChangeTime").ToUniversalTime();
 }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:8,代码来源:GraphDocument.cs

示例6: SDeserialize

      protected virtual AltaxoVariant SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
      {
        AltaxoVariant s = (o == null ? new AltaxoVariant() : (AltaxoVariant)o);
        Content c = (Content)info.GetEnum("Content", typeof(Content));
        s.m_Content = c;

        switch(c)
        {
          case Content.VNull:
            break;
          case Content.VDouble:
            s.m_Double = info.GetDouble("Value");
            break;
          case Content.VDateTime:
            s.m_Object = info.GetDateTime("Value");
            break;
          case Content.VString:
            s.m_Object = info.GetString("Value");
            break;
          default:
            s.m_Object = info.GetValue("Value",s);
            break;
        }

        return s;
      }
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:26,代码来源:Variant.cs

示例7: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				DateTimeScaleRescaleConditions s = null != o ? (DateTimeScaleRescaleConditions)o : new DateTimeScaleRescaleConditions();

				s._userProvidedOrgRelativeTo = BoundariesRelativeTo.Absolute;
				s._userProvidedEndRelativeTo = BoundariesRelativeTo.Absolute;

				var orgRescaling = (BoundaryRescaling)(int)info.GetEnum("OrgRescaling", typeof(BoundaryRescalingV1));
				var org = info.GetDateTime("Org");
				var endRescaling = (BoundaryRescaling)(int)info.GetEnum("EndRescaling", typeof(BoundaryRescalingV1));
				var end = info.GetDateTime("End");
				var spanRescaling = (BoundaryRescaling)(int)info.GetEnum("SpanRescaling", typeof(BoundaryRescalingV1));
				var span = info.GetTimeSpan("Span");

				if (4 == (int)orgRescaling)
					orgRescaling = BoundaryRescaling.Auto;
				if (4 == (int)endRescaling)
					endRescaling = BoundaryRescaling.Auto;

				s._orgRescaling = orgRescaling;
				s._endRescaling = endRescaling;
				s._userProvidedOrgValue = org.Ticks;
				s._userProvidedEndValue = end.Ticks;
				s._userProvidedOrgDateTimeKind = org.Kind;
				s._userProvidedEndDateTimeKind = end.Kind;

				s._resultingOrg = org.Ticks;
				s._resultingEnd = end.Ticks;

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:31,代码来源:DateTimeScaleRescaleConditions.cs

示例8: SDeserialize

			protected virtual DateTimeScale SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				DateTimeScale s = null != o ? (DateTimeScale)o : new DateTimeScale();

				s._axisOrg = info.GetDateTime("Org");
				s._axisEnd = info.GetDateTime("End");
				Unit spanUnit = (Unit)info.GetEnum("MajorSpanUnit", typeof(Unit));
				TimeSpan span = info.GetTimeSpan("MajorSpanValue");
				s._majorSpan = new SpanCompound(spanUnit, span);
				s._minorTicks = info.GetInt32("MinorTicks");
				s.InternalSetDataBounds((FiniteDateTimeBoundaries)info.GetValue("Bounds", s));
				s.InternalSetRescaling((DateTimeScaleRescaleConditions)info.GetValue("Rescaling", s));

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:15,代码来源:DateTimeScale.cs

示例9: Deserialize

			public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				FitFunctionScript s = null != o ? (FitFunctionScript)o : new FitFunctionScript();

				s._fitFunctionCategory = info.GetString("Category");
				s._fitFunctionName = info.GetString("Name");
				s._fitFunctionCreationTime = info.GetDateTime("CreationTime");
				s._fitFunctionDescription = info.GetString("Description");

				// deserialize the base class
				info.GetBaseValueEmbedded(s, typeof(AbstractScript), parent);

				s._NumberOfParameters = info.GetInt32("NumberOfParameters");
				s._IsUsingUserDefinedParameterNames = info.GetBoolean("UserDefinedParameters");
				if (s._IsUsingUserDefinedParameterNames)
					info.GetArray("UserDefinedParameterNames", out s._UserDefinedParameterNames);
				info.GetArray("IndependentVariableNames", out s._IndependentVariablesNames);
				info.GetArray("DependentVariableNames", out s._DependentVariablesNames);

				XmlSerializationSurrogate2 surr = new XmlSerializationSurrogate2();
				surr._deserializedObject = s;
				info.DeserializationFinished += new Altaxo.Serialization.Xml.XmlDeserializationCallbackEventHandler(surr.info_DeserializationFinished);

				return s;
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:25,代码来源:FitFunctionScript.cs

示例10: Deserialize

			public virtual void Deserialize(DataTable s, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
			{
				s._name = info.GetString("Name");
				s._dataColumns = (DataColumnCollection)info.GetValue("DataCols", s);
				s._dataColumns.ParentObject = s;
				s._dataColumns.ColumnScripts.ParentObject = s;

				s._propertyColumns = (DataColumnCollection)info.GetValue("PropCols", s);
				s._propertyColumns.ParentObject = s;
				s._propertyColumns.ColumnScripts.ParentObject = s;

				s._tableScript = (TableScript)info.GetValue("TableScript", s);
				if (null != s._tableScript) s._tableScript.ParentObject = s;

				s.PropertyBag = (Main.Properties.PropertyBag)info.GetValue("Properties", s);

				s._notes.Text = info.GetString("Notes");
				s._creationTime = info.GetDateTime("CreationTime").ToUniversalTime();
				s._lastChangeTime = info.GetDateTime("LastChangeTime").ToUniversalTime();
				if (info.CurrentElementName == "TableDataSource")
				{
					s._tableDataSource = (IAltaxoTableDataSource)info.GetValue("TableDataSource", s);
					if (null != s._tableDataSource)
					{
						s._tableDataSource.ParentObject = s;
						s._tableDataSource.OnAfterDeserialization();
					}
				}
			}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:29,代码来源:DataTable.cs


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