-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAlteration.cs
42 lines (38 loc) · 1.05 KB
/
Alteration.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
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Alteration_Buddy
{
class Alteration
{
public string ShortTap { get; set; }
public string Tap { get; set; }
public string Look { get; set; }
public string Read { get; set; }
public Alteration(DataRow row)
{
ShortTap = row["Column1"].ToString();
Tap = row["Column2"].ToString();
Look = row["Column3"].ToString();
Read = row["Column4"].ToString();
}
public Alteration(string alterationString)
{
string[] parameters = alterationString.Split('\t');
ShortTap = parameters[0];
Tap = parameters[1];
Look = parameters[2];
Read = parameters[3];
}
public Alteration()
{
}
public override string ToString()
{
return ShortTap + "\t" + Tap + "\t" + Look + "\t" + Read;
}
}
}