Ejemplo n.º 1
0
 public override string ToXml()
 {
     return
         ($"<block type=\"{XML_TYPE_NAME}\" id=\"{ID}\">" +
          $"<field name=\"{FLUID_NAME_FIELD_NAME}\">{OriginalFluidName}</field>" +
          $"<field name=\"{FLUID_AMOUNT_FIELD_NAME}\">{AmountInML}</field>" +
          $"<field name=\"{USE_ALL_FLUID_FIELD_NAME}\">{FluidInput.BoolToString(UseAllFluid)}</field>" +
          "</block>");
 }
Ejemplo n.º 2
0
 public override string ToXml()
 {
     return
         ($"<block type=\"{XML_TYPE_NAME}\" id=\"{ID}\">" +
          $"<field name=\"{ARRAY_NAME_FIELD_NAME}\">{ArrayName}</field>" +
          $"<field name=\"{FLUID_AMOUNT_FIELD_NAME}\">{AmountInML}</field>" +
          $"<field name=\"{USE_ALL_FLUID_FIELD_NAME}\">{FluidInput.BoolToString(UseAllFluid)}</field>" +
          $"<value name=\"{INDEX_FIELD_NAME}\">" +
          IndexBlock.ToXml() +
          "</value>" +
          "</block>");
 }