blob: 086d6070b60bb85909ba614562af2f45e258e2a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Enumerations;
namespace Tango.BL.Entities
{
public class TensileResult: TensileResultBase
{
public TensileResult()
{
MaxLoad = 0.0;
StdevMaxLoad = 0.0;
StrainMaxLoad = 0.0;
StdevStrainMaxLoad = 0.0;
PercentChangeStrain = 0.0;
PercentChangeLoad = 0.0;
}
#region value to enum conversion
[NotMapped]
[JsonIgnore]
public TestResultColors TestResultColor
{
get { return (TestResultColors)Color; }
set
{
Color = (int)value;
RaisePropertyChangedAuto();
}
}
public bool IsWhiteColor
{
get
{
return TestResultColor == TestResultColors.WHITE;
}
}
#endregion
}
}
|