-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMaintainView.cs
More file actions
79 lines (66 loc) · 2.1 KB
/
Copy pathMaintainView.cs
File metadata and controls
79 lines (66 loc) · 2.1 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using System;
using System.Windows.Forms;
using ReleaseWITAlert.Lib;
namespace ReleaseWITAlert
{
public partial class MaintainView : Form, IMaintainView
{
public EventHandler GetTags { get; set; }
public EventHandler SaveProject { get; set; }
public EventHandler CancelChanges { get; set; }
public EventHandler ViewClosing { get; set; }
public TableLayoutPanel AvailableTags
{
get => avaialbleTags;
set => avaialbleTags = value;
}
public TableLayoutPanel TrackedTags
{
get => trackedTags;
set => trackedTags = value;
}
public bool IsDirty { get; set; }
public string ReleaseProjectName
{
get => txtReleaseName.Text;
set => txtReleaseName.Text = value;
}
public string TeamProjectName
{
get => txtTeamProjectName.Text;
set => txtTeamProjectName.Text = value;
}
public MaintainView()
{
InitializeComponent();
}
public void ShowView()
{
ShowDialog();
}
public void CloseView()
{
Close();
}
private void btnGetTags_Click(object sender, EventArgs e)
{
if (GetTags == null) throw new NotImplementedException();
GetTags(sender,e);
}
private void btnSave_Click(object sender, EventArgs e)
{
if (SaveProject == null) throw new NotImplementedException();
SaveProject(sender, e);
}
private void btnCancel_Click(object sender, EventArgs e)
{
if (CancelChanges == null) throw new NotImplementedException();
CancelChanges(sender, e);
}
private void MaintainView_FormClosing(object sender, FormClosingEventArgs e)
{
if (ViewClosing == null) throw new NotImplementedException();
ViewClosing(sender, e);
}
}
}