Advertisement
Guest User

Untitled

a guest
Jan 27th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.81 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace HeatExchangerGUI.HelperClasses
  6. {
  7.     public class WindowViewModel
  8.     {
  9.         /// <summary>
  10.         /// Currently selected substance.
  11.         /// </summary>
  12.         public Substance SelectedSubstance = null;
  13.         /// <summary>
  14.         /// List ob substances.
  15.         /// </summary>
  16.         public List<Substance> Substances;
  17.         /// <summary>
  18.         /// Default constructor.
  19.         /// </summary>
  20.         public WindowViewModel()
  21.         {
  22.             Substances = new List<Substance>
  23.             {
  24.                 new Substance { Name = "Milk", Rho = 1011.0, C = 3.85, Lambda = 0.518, Mu = 0.000720, Pr = 5.35 },
  25.                 new Substance { Name = "Cream", Rho = 974, C = 3.58, Lambda = 0.358, Mu = 0.000255, Pr = 25.5 },
  26.                 new Substance { Name = "Butter", Rho = 898, C = 1.94, Lambda = 0.163, Mu = 0.0000154, Pr = 184 }
  27.             };
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement