Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace HeatExchangerGUI.HelperClasses
- {
- public class WindowViewModel
- {
- /// <summary>
- /// Currently selected substance.
- /// </summary>
- public Substance SelectedSubstance = null;
- /// <summary>
- /// List ob substances.
- /// </summary>
- public List<Substance> Substances;
- /// <summary>
- /// Default constructor.
- /// </summary>
- public WindowViewModel()
- {
- Substances = new List<Substance>
- {
- new Substance { Name = "Milk", Rho = 1011.0, C = 3.85, Lambda = 0.518, Mu = 0.000720, Pr = 5.35 },
- new Substance { Name = "Cream", Rho = 974, C = 3.58, Lambda = 0.358, Mu = 0.000255, Pr = 25.5 },
- new Substance { Name = "Butter", Rho = 898, C = 1.94, Lambda = 0.163, Mu = 0.0000154, Pr = 184 }
- };
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement