-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvent.cs
More file actions
63 lines (55 loc) · 1.2 KB
/
Event.cs
File metadata and controls
63 lines (55 loc) · 1.2 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 System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Calendar
{
/**
* 备忘事件
*/
[Serializable]
public class Event
{
// 事件内容
public String Title;
// 时间
public String Time;
// 日期
public String Date;
// 类型 0普通 1定时 2备忘
public int Type = 0;
// 事件id
public String EventID;
// 关闭
public int closed = 0;
public Event()
{
EventID = Guid.NewGuid().ToString();
}
public Event(String Title, String Time, String Date, int _type)
{
this.Title = Title;
this.Time = Time;
this.Date = Date;
this.Type = _type;
this.EventID = Guid.NewGuid().ToString();
}
public String getTitle()
{
return Title;
}
public String getTime()
{
return Time;
}
public String getDate()
{
return Date;
}
public int getType()
{
return Type;
}
}
}