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