-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathProblemItem.cs
More file actions
40 lines (34 loc) · 785 Bytes
/
ProblemItem.cs
File metadata and controls
40 lines (34 loc) · 785 Bytes
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
using System;
using System.Windows.Forms;
namespace TaskSchedulerConfig
{
public partial class ProblemItem : UserControl
{
private bool hidden = false;
public ProblemItem()
{
InitializeComponent();
}
public string Title
{
get { return title.Text; }
set { title.Text = value; }
}
public string Description
{
get { return desc.Text; }
set { desc.Text = value; }
}
public string Resolution
{
get { return resolution.Text; }
set { resolution.Text = value; }
}
private void pictureBox1_Click(object sender, EventArgs e)
{
hidden = !hidden;
resolution.Visible = desc.Visible = !hidden;
pictureBox1.Image = hidden ? Properties.Resources.Minus : Properties.Resources.Plus;
}
}
}