/
WallType.cs
66 lines (63 loc) · 1.74 KB
/
WallType.cs
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Media;
namespace BoxCreator
{
public class WallType
{
/// <summary>
/// Types of walls
/// </summary>
public enum WallTypeEnum { Front, Left, Bottom, Right, Back, Up, Cover, FrontCover, BackCover, LeftCover, RightCover, Unknown }
/// <summary>
/// Converts wall type enum to string.
/// </summary>
/// <param name="wallTypeEnum">The wall type enum.</param>
/// <returns>String describing wallTypeEnum</returns>
public static string WallTypeEnumToString(WallTypeEnum wallTypeEnum)
{
string result = "Unknown";
switch (wallTypeEnum)
{
case WallTypeEnum.Front:
result = "Front";
break;
case WallTypeEnum.Left:
result = "Left";
break;
case WallTypeEnum.Bottom:
result = "Bottom";
break;
case WallTypeEnum.Right:
result = "Right";
break;
case WallTypeEnum.Back:
result = "Back";
break;
case WallTypeEnum.Up:
result = "Up";
break;
case WallTypeEnum.Cover:
result = "Cover";
break;
case WallTypeEnum.FrontCover:
result = "Front of cover";
break;
case WallTypeEnum.BackCover:
result = "Back of cover";
break;
case WallTypeEnum.LeftCover:
result = "Left of cover";
break;
case WallTypeEnum.RightCover:
result = "Right of cover";
break;
}
return result;
}
}
}