public PhaseSystemModel(PhaseSystemModel model)
        {
            this.Formula = model.Formula;
            this.Phases = new List<PhaseModel>();
            foreach (var phase in model.Phases)
            {
                Phases.Add(new PhaseModel() { Phase = phase.Phase, Percentage = phase.Percentage });
            }

            this.SolidSumOxides = model.SolidSumOxides;
        }
Ejemplo n.º 2
0
 private static void SetDataBySystem(IXLWorksheet ws, float systemModule, PhaseSystemModel systemOrig, PhaseSystemModel systemCalc, int currentRow, ref int currentColumn)
 {
     ws.Cell(currentRow, currentColumn).Value = systemModule;
     currentColumn++;
     ws.Cell(currentRow, currentColumn).Value = systemOrig.SumLiquid;
     currentColumn++;
     SetPhasesData(ws, systemOrig.Phases, currentRow, ref currentColumn);
     ws.Cell(currentRow, currentColumn).Value = systemCalc.SumLiquid;
     currentColumn++;
     SetPhasesData(ws, systemCalc.Phases, currentRow, ref currentColumn);
     SetOxidesBySystem(ws, systemCalc.SolidSumOxides, currentRow, ref currentColumn);
 }