-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathProgram.cs
More file actions
63 lines (45 loc) · 1.6 KB
/
Copy pathProgram.cs
File metadata and controls
63 lines (45 loc) · 1.6 KB
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
using Horizon.Visualizer.UI;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Allegro.Console
{
class Program
{
static void Main(string[] args)
{
DataSet ds = new DataSet();
DataTable dt = new DataTable();
ds.Tables.Add(dt);
dt.Columns.Add("Name", typeof(string));
dt.Columns.Add("Date", typeof(DateTime));
DataTable dt2 = new DataTable();
ds.Tables.Add(dt2);
dt2.Columns.Add("Name", typeof(string));
dt2.Columns.Add("Salary", typeof(decimal));
dt2.Columns.Add("Active", typeof(bool));
DataTable dt3 = new DataTable();
dt3.Columns.Add("Name", typeof(string));
dt3.Columns.Add("Salary", typeof(decimal));
DataRow row1 = dt3.NewRow();
row1["Name"] = "John";
row1["Salary"] = 200;
dt3.Rows.Add(row1);
DataSetDebuggerSide.TestShowVisualizer(dt3);
//List<Employee> list = new List<Employee>();
//list.Add(new Employee() { Name = "John Doe", DOB = new DateTime(1981, 5, 10), Salary = 20000M });
//list.Add(new Employee() { Name = "Jane Doe", DOB = new DateTime(1990, 6, 20), Salary = 25000M });
//ListDebuggerSide.ShowVisualizerForm(list, "test");
}
}
[Serializable]
class Employee
{
public string Name { get; set; }
public DateTime DOB { get; set; }
public decimal Salary { get; set; }
}
}