Esempio n. 1
0
 private static void ProcessTimeFormat(TimeFieldFormat tff, XmlWriter xmlw)
 {
     xmlw.WriteStartElement("TimeFieldFormat");
     xmlw.WriteAttributeString("AMPMFormat", tff.AMPMFormat.ToStringSafe());
     xmlw.WriteAttributeString("AMString", tff.AMString);
     xmlw.WriteAttributeString("HourFormat", tff.HourFormat.ToStringSafe());
     xmlw.WriteAttributeString("HourMinuteSeparator", tff.HourMinuteSeparator);
     xmlw.WriteAttributeString("MinuteFormat", tff.MinuteFormat.ToStringSafe());
     xmlw.WriteAttributeString("MinuteSecondSeparator", tff.MinuteSecondSeparator);
     xmlw.WriteAttributeString("PMString", tff.PMString);
     xmlw.WriteAttributeString("SecondFormat", tff.SecondFormat.ToStringSafe());
     xmlw.WriteAttributeString("TimeBase", tff.TimeBase.ToStringSafe());
     xmlw.WriteEndElement();
 }
Esempio n. 2
0
 private static void ProcessTimeFormat(TimeFieldFormat tff, XmlWriter xmlw)
 {
     xmlw.WriteStartElement("TimeFieldFormat");
     xmlw.WriteAttributeString("AMPMFormat", tff.AMPMFormat.ToStringSafe());
     xmlw.WriteAttributeString("AMString", tff.AMString);
     xmlw.WriteAttributeString("HourFormat", tff.HourFormat.ToStringSafe());
     xmlw.WriteAttributeString("HourMinuteSeparator", tff.HourMinuteSeparator);
     xmlw.WriteAttributeString("MinuteFormat", tff.MinuteFormat.ToStringSafe());
     xmlw.WriteAttributeString("MinuteSecondSeparator", tff.MinuteSecondSeparator);
     xmlw.WriteAttributeString("PMString", tff.PMString);
     xmlw.WriteAttributeString("SecondFormat", tff.SecondFormat.ToStringSafe());
     xmlw.WriteAttributeString("TimeBase", tff.TimeBase.ToStringSafe());
     xmlw.WriteAttributeString("AMPMFormatFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeAMPMFormat].Text);
     xmlw.WriteAttributeString("AMStringFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeAMString].Text);
     xmlw.WriteAttributeString("HourFormatFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeHourFormat].Text);
     xmlw.WriteAttributeString("HourMinuteSeparatorFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeHourMinuteSeparator].Text);
     xmlw.WriteAttributeString("MinuteFormatFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeMinuteFormat].Text);
     xmlw.WriteAttributeString("MinuteSecondSeparatorFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeMinuteSecondSeparator].Text);
     xmlw.WriteAttributeString("PMStringFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypePMString].Text);
     xmlw.WriteAttributeString("SecondFormatFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeSecondFormat].Text);
     xmlw.WriteAttributeString("TimeBaseFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeTimeBase].Text);
     xmlw.WriteEndElement();
 }
Esempio n. 3
0
 private static void ProcessTimeFormat(TimeFieldFormat tff, Utf8JsonWriter jsonw)
 {
     jsonw.WritePropertyName("TimeFieldFormat");
     jsonw.WriteStartObject();
     jsonw.WriteString("AMPMFormat", tff.AMPMFormat.ToStringSafe());
     jsonw.WriteString("AMString", tff.AMString);
     jsonw.WriteString("HourFormat", tff.HourFormat.ToStringSafe());
     jsonw.WriteString("HourMinuteSeparator", tff.HourMinuteSeparator);
     jsonw.WriteString("MinuteFormat", tff.MinuteFormat.ToStringSafe());
     jsonw.WriteString("MinuteSecondSeparator", tff.MinuteSecondSeparator);
     jsonw.WriteString("PMString", tff.PMString);
     jsonw.WriteString("SecondFormat", tff.SecondFormat.ToStringSafe());
     jsonw.WriteString("TimeBase", tff.TimeBase.ToStringSafe());
     jsonw.WriteString("AMPMFormatFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeAMPMFormat].Text);
     jsonw.WriteString("AMStringFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeAMString].Text);
     jsonw.WriteString("HourFormatFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeHourFormat].Text);
     jsonw.WriteString("HourMinuteSeparatorFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeHourMinuteSeparator].Text);
     jsonw.WriteString("MinuteFormatFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeMinuteFormat].Text);
     jsonw.WriteString("MinuteSecondSeparatorFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeMinuteSecondSeparator].Text);
     jsonw.WriteString("PMStringFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypePMString].Text);
     jsonw.WriteString("SecondFormatFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeSecondFormat].Text);
     jsonw.WriteString("TimeBaseFormula", tff.ConditionFormulas[CrTimeFieldFormatConditionFormulaTypeEnum.crTimeFieldFormatConditionFormulaTypeTimeBase].Text);
     jsonw.WriteEndObject();
 }